some small updates that are useful to debug graphics drivers and the library..
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
diff --git a/demos/src/ftview.c b/demos/src/ftview.c
index 425289d..9313903 100644
--- a/demos/src/ftview.c
+++ b/demos/src/ftview.c
@@ -59,6 +59,8 @@
int res = 96;
+ static grColor fore_color = { 127 };
+
int Fail;
unsigned char autorun;
@@ -195,11 +197,7 @@
if (bit.pitch < 0)
y_top = bit.rows - y_top;
*/
- grBlitGlyphToBitmap( &bit,
- &bit3,
- x_top,
- y_top,
- (grColor)127L );
+ grBlitGlyphToBitmap( &bit, &bit3, x_top, y_top, fore_color );
return 0;
}
@@ -587,7 +585,7 @@
if (!new_header)
new_header = Header;
- grWriteCellString( &bit, 0, 0, new_header, (grColor)127L );
+ grWriteCellString( &bit, 0, 0, new_header, fore_color );
new_header = 0;
sprintf( Header, "at %d points, first glyph = %d",
@@ -600,7 +598,7 @@
ft_basename(filename) );
}
- grWriteCellString( &bit, 0, 8, Header, (grColor)127L );
+ grWriteCellString( &bit, 0, 8, Header, fore_color );
grRefreshSurface( surface );
grListenSurface( surface, 0, &event );