diff options
author | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-05-26 13:38:28 +0000 |
---|---|---|
committer | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-05-26 13:38:28 +0000 |
commit | dd609c22ecfe937ecd7d7b35747ab5b20caeee23 (patch) | |
tree | 06baf30f2570790cbf523abc8f83f41f38ab0621 /src/corelib/gdi | |
parent | 5a98dc550ad44cba3cc8c4249063c59da2f6a01f (diff) | |
download | fpGUI-dd609c22ecfe937ecd7d7b35747ab5b20caeee23.tar.xz |
* Applied Vladimir's patch to reduce GDI Objects.
Diffstat (limited to 'src/corelib/gdi')
-rw-r--r-- | src/corelib/gdi/gfx_gdi.pas | 5 |
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); |