summaryrefslogtreecommitdiff
path: root/src/corelib
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2010-03-17 14:18:20 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2010-03-18 16:13:54 +0200
commit99a3be112b033d3b238e37cbb06c1708d004cee4 (patch)
treedd5b097870a258830ee40a1da6b55b94ca2689a7 /src/corelib
parent05322ebae6280a855330f21d57bbfc7ac0001222 (diff)
downloadfpGUI-99a3be112b033d3b238e37cbb06c1708d004cee4.tar.xz
Minor code formatting change.
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/gdi/fpg_gdi.pas8
1 files 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);