summaryrefslogtreecommitdiff
path: root/gfx/x11
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@users.sourceforge.net>2006-11-20 23:04:34 +0000
committerGraeme Geldenhuys <graemeg@users.sourceforge.net>2006-11-20 23:04:34 +0000
commitd6e2a4786f063ff251974ddf3cf71d90a4d8b3ba (patch)
treef8c45b78fe0a0722049b8606f1c92d0475b5113e /gfx/x11
parent54b2341219daec7813680bc049b88e8582088d66 (diff)
downloadfpGUI-d6e2a4786f063ff251974ddf3cf71d90a4d8b3ba.tar.xz
* Fix color depths under X11. 24bit was not working.
* Changed the SubWindow example to paint a bit better.
Diffstat (limited to 'gfx/x11')
-rw-r--r--gfx/x11/gfx_x11.pas2
1 files changed, 2 insertions, 0 deletions
diff --git a/gfx/x11/gfx_x11.pas b/gfx/x11/gfx_x11.pas
index b812d49f..ff480ee0 100644
--- a/gfx/x11/gfx_x11.pas
+++ b/gfx/x11/gfx_x11.pas
@@ -837,9 +837,11 @@ begin
case Attr.Depth of
1: PixelFormat.FormatType := ftMono;
// 4: PixelFormat.FormatType := ftPal4;
+ 4,
8: PixelFormat.FormatType := ftPal8;
16: PixelFormat.FormatType := ftRGB16;
// 24: PixelFormat.FormatType := ftRGB24;
+ 24,
32: PixelFormat.FormatType := ftRGB32;
else
raise EX11Error.CreateFmt(SWindowUnsupportedPixelFormat, [Attr.Depth]);