summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2012-09-21 17:20:31 +0100
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2012-09-21 17:20:31 +0100
commit5affa7cc1bfeafd97ae060ae8b068354cef18af5 (patch)
tree2c7f368bcb0e25fcabfc73614b351d3662093880 /src
parenta38314de7d53d6ed245f68d2359cdc2fb64edd62 (diff)
downloadfpGUI-5affa7cc1bfeafd97ae060ae8b068354cef18af5.tar.xz
gdi: re-ordered the code in a more logical way, to ease reading.
Diffstat (limited to 'src')
-rw-r--r--src/corelib/gdi/fpg_gdi.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/gdi/fpg_gdi.pas b/src/corelib/gdi/fpg_gdi.pas
index 57dfba7c..c6fbe477 100644
--- a/src/corelib/gdi/fpg_gdi.pas
+++ b/src/corelib/gdi/fpg_gdi.pas
@@ -376,7 +376,7 @@ var
begin
c := fpgColorToRGB(col);
//swapping bytes (Red and Blue colors)
- Result := ((c and $FF0000) shr 16) or ((c and $0000FF) shl 16) or (c and $00FF00);
+ Result := ((c and $FF0000) shr 16) or (c and $00FF00) or ((c and $0000FF) shl 16);
end;
function WinColorTofpgColor(col: longword): TfpgColor;