Mercurial > dwindows
changeset 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 | b4a23eab81fa |
children | af989b9f1767 |
files | dwtest.c makefile.emx |
diffstat | 2 files changed, 5 insertions(+), 5 deletions(-) [+] |
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;
--- a/makefile.emx Mon Nov 14 17:31:59 2011 +0000 +++ b/makefile.emx Mon Nov 14 21:22:21 2011 +0000 @@ -9,7 +9,7 @@ COMPRESS = lxlite VER = 21 VERDOT = 2.1 -AVERREV = $(shell os2\svnrev.cmd) +AVERREV := $(shell os2\svnrev.cmd) include SVN.REV DEFS = @@ -45,7 +45,7 @@ $(CC) $(CFLAGS) -Zomf -Zmt -static-libgcc -o dwtest.exe dwtest.o -Llib -ldw -ldwcompat dwtest.def clean: - $(RM) $(OBJECTS) dwtest.exe dw.dll dwcompat.dll + $(RM) *.obj *.o *.lib *.res *~ dwtest.exe dw.dll dwcompat.dll SVN.REV dw.obj: dw.c $(CC) $(CFLAGS) -c $<