sdlterm/src/sdlterm.h
changeset 61 15088f62c4ac
parent 60 fccca2a60492
child 67 71f60bf6ebb7
--- a/sdlterm/src/sdlterm.h	Wed Jan 09 22:32:15 2013 +0100
+++ b/sdlterm/src/sdlterm.h	Thu Jan 10 00:03:34 2013 +0100
@@ -199,7 +199,7 @@
     void putch(int x, int y, Uint32 ch) { _screen.putch(x, y, ch, _attr); };
     void commit();
 
-    Uint32 prepare_attr(Uint8 fg, Uint8 bg, Uint8 style) { return (Uint32)fg | (Uint32)bg << 8 | (Uint32)style << 24; };
+    Uint32 prepare_attr(Uint8 fg, Uint8 bg, Uint32 style) { return (Uint32)fg | (Uint32)bg << 8 | (style & 0xFF000000); };
     void set_attr(Uint32 value) { _attr = value; };
 
     void show_cursor(int x, int y) { _cursor_x = x; _cursor_y = y; _cursor_visible = true; };