Mercurial > dwindows
diff dwtest.c @ 1343:d4c874f13e9b
More fixes for OS/2 gcc/gmake. Need to use := to evaluate the $(shell) variable.
Fixed a few OS/2 gcc warnings in dwtest.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 14 Nov 2011 21:22:21 +0000 |
parents | 03f0bc85e7be |
children | 1f22addc2722 |
line wrap: on
line diff
--- a/dwtest.c Mon Nov 14 17:31:59 2011 +0000 +++ b/dwtest.c Mon Nov 14 21:22:21 2011 +0000 @@ -428,7 +428,7 @@ int nrows; /* Calculate new dimensions */ - dw_font_text_extents_get(NULL, pixmap, "(g", NULL, &fheight); + dw_font_text_extents_get(0, pixmap, "(g", NULL, &fheight); nrows = (int)(DW_PIXMAP_HEIGHT(pixmap) / fheight); /* Do the actual drawing */ @@ -440,14 +440,14 @@ char *text = "No file currently selected!"; int posx, posy; - dw_font_text_extents_get(NULL, pixmap, text, &fwidth, &fheight); + dw_font_text_extents_get(0, pixmap, text, &fwidth, &fheight); posx = (int)(DW_PIXMAP_WIDTH(pixmap) - fwidth)/2; posy = (int)(DW_PIXMAP_HEIGHT(pixmap) - fheight)/2; dw_color_foreground_set(DW_CLR_BLACK); dw_color_background_set(DW_CLR_WHITE); - dw_draw_text(NULL, pixmap, posx, posy, text); + dw_draw_text(0, pixmap, posx, posy, text); } } return TRUE;