From 99a3be112b033d3b238e37cbb06c1708d004cee4 Mon Sep 17 00:00:00 2001 From: Graeme Geldenhuys Date: Wed, 17 Mar 2010 14:18:20 +0200 Subject: Minor code formatting change. --- src/corelib/gdi/fpg_gdi.pas | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/corelib/gdi/fpg_gdi.pas b/src/corelib/gdi/fpg_gdi.pas index 28e0260f..38732475 100644 --- a/src/corelib/gdi/fpg_gdi.pas +++ b/src/corelib/gdi/fpg_gdi.pas @@ -453,9 +453,12 @@ var begin hdcDest:= CreateCompatibleDC(0); SelectObject(hdcDest, BMP); - if bi.bmiHeader.biBitCount = 1 then begin + if bi.bmiHeader.biBitCount = 1 then + begin SetDIBitsToDevice(hdcDest, 0, 0, awidth, aheight, 0, 0, 0, aheight, aimgdata, bi, DIB_RGB_COLORS); - end else begin + end + else + begin hdcSrc:= CreateCompatibleDC(0); hbmSrc:= CreateBitmap(awidth, aheight, 1, bi.bmiHeader.biBitCount, aimgdata); SelectObject(hdcSrc, hbmSrc); @@ -465,7 +468,6 @@ begin end; DeleteDC(hdcDest); end; - {$ENDIF} procedure GetWindowBorderDimensions(const w: TfpgWindowBase; var dx, dy: integer); -- cgit v1.2.3-70-g09d2