1.  ȥ DXȫռģʽ     

procedure TfrmMain.FormCreate(Sender: TObject);     

     if g_boFullScreen then
     DXDraw.Options:=DXDraw.Options + [doFullScreen];   //ע͵

ĺɫʧ    ֻҪӸ  g_boUseDIBSurface := TRUE;  ͿԲɫʧ

2.ΪʲôͼƬֻĻ00ʾ 

Ϊ DxDraw.Primary.Draw (0, 0, DxDraw.Surface.ClientRect, DxDraw.Surface, FALSE); ġ

ֻҪ    DXDraw.Flip   OK


procedure TMainForm.FormKeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
  {Esc˳}
  if Key=VK_ESCAPE then
    Close;

  {ȫģʽʹģʽл}
  if (ssAlt in Shift) and (Key=VK_RETURN) then
  begin
    DXDraw.Finalize;

    if doFullScreen in DXDraw.Options then
    begin
      RestoreWindow;

      DXDraw.Cursor := crNone;
      BorderStyle := bsSizeable;
      DXDraw.Options := DXDraw.Options - [doFullScreen];
    end else
    begin
      StoreWindow;

      DXDraw.Cursor := crNone;
      BorderStyle := bsNone;
      DXDraw.Options := DXDraw.Options + [doFullScreen];
    end;

    DXDraw.Initialize;
  end;
end;


//WNpcImg.Initialize;
WEffectImg.Initialize;
//ImageList.Items.MakeColorTable;

// DXDraw.ColorTable := ImageList.Items.ColorTable;
DXDraw.DefColorTable := g_WMainImages.MainPalette;
//DXDraw.DefColorTable := ImageList.Items.ColorTable;
DXDraw.ColorTable := DXDraw.DefColorTable;
// DXDraw.UpdatePalette;
DXDraw.UpdatePalette;


//MainSurface := TDirectDrawSurface.Create (frmMain.DxDraw.DDraw);
//MainSurface.SystemMemory := TRUE;
//MainSurface.SetSize (SCREENWIDTH, SCREENHEIGHT);


BackSprite:=TBackgroundSprite.Create(DXSpriteEngine.Engine);
with TBackgroundSprite(BackSprite) do