summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-05-26 13:38:28 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-05-26 13:38:28 +0000
commitdd609c22ecfe937ecd7d7b35747ab5b20caeee23 (patch)
tree06baf30f2570790cbf523abc8f83f41f38ab0621
parent5a98dc550ad44cba3cc8c4249063c59da2f6a01f (diff)
downloadfpGUI-dd609c22ecfe937ecd7d7b35747ab5b20caeee23.tar.xz
* Applied Vladimir's patch to reduce GDI Objects.
-rw-r--r--src/corelib/gdi/gfx_gdi.pas5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/corelib/gdi/gfx_gdi.pas b/src/corelib/gdi/gfx_gdi.pas
index 0873d682..4482aa90 100644
--- a/src/corelib/gdi/gfx_gdi.pas
+++ b/src/corelib/gdi/gfx_gdi.pas
@@ -93,7 +93,7 @@ type
FBufferBitmap: HBitmap;
FDrawWindow: TfpgWindowImpl;
Fgc: TfpgDCHandle;
- fBufgc: TfpgDCHandle;
+ FBufgc: TfpgDCHandle;
FWinGC: TfpgDCHandle;
FBackgroundColor: TfpgColor;
FCurFontRes: TfpgFontResourceImpl;
@@ -1434,8 +1434,7 @@ begin
DeleteObject(FPen);
DeleteObject(FClipRegion);
- if FastDoubleBuffer = False then
- TryFreeBackBuffer;
+ TryFreeBackBuffer;
Windows.ReleaseDC(FDrawWindow.FWinHandle, FWingc);