Mercurial > dwindows
changeset 289:0e6f09149eaa
Fixed some EMX warnings.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 19 Mar 2003 14:58:23 +0000 |
parents | 92367f4c0836 |
children | 8ea5b2c35bfe |
files | dwtest.c os2/dirent.c os2/dw.c |
diffstat | 3 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/dwtest.c Wed Mar 19 09:42:41 2003 +0000 +++ b/dwtest.c Wed Mar 19 14:58:23 2003 +0000 @@ -71,7 +71,7 @@ width = DW_PIXMAP_WIDTH(hpm); height = DW_PIXMAP_HEIGHT(hpm); - dw_pixmap_bitblt(hwnd, NULL, 0, 0, width, height, NULL, hpm, 0, 0 ); + dw_pixmap_bitblt(hwnd, NULL, 0, 0, width, height, 0, hpm, 0, 0 ); dw_flush(); return TRUE; } @@ -118,9 +118,9 @@ y = i*(font_height+font_gap); dw_color_foreground_set( i ); sprintf( buf, "%6.6d", i+row ); - dw_draw_text( NULL, text1pm, 0, y, buf); + dw_draw_text( 0, text1pm, 0, y, buf); pLine = lp[i+row]; - dw_draw_text( NULL, text2pm, 0, y, pLine+col ); + dw_draw_text( 0, text2pm, 0, y, pLine+col ); } text_expose( textbox1, NULL, NULL); text_expose( textbox2, NULL, NULL); @@ -349,9 +349,9 @@ tree = dw_tree_new(0); dw_box_pack_start( notebookbox3, tree, 500, 200, TRUE, FALSE, 1); - t1 = dw_tree_insert(tree, "tree item 1", 0, NULL, NULL ); - t2 = dw_tree_insert(tree, "tree item 2", 0, NULL, NULL ); - t3 = dw_tree_insert(tree, "tree item 3", 0, t2, NULL ); + t1 = dw_tree_insert(tree, "tree item 1", 0, 0, 0 ); + t2 = dw_tree_insert(tree, "tree item 2", 0, 0, 0 ); + t3 = dw_tree_insert(tree, "tree item 3", 0, t2, 0 ); /* dw_signal_connect(textbox1, "expose_event", DW_SIGNAL_FUNC(text_expose), NULL);
--- a/os2/dirent.c Wed Mar 19 09:42:41 2003 +0000 +++ b/os2/dirent.c Wed Mar 19 14:58:23 2003 +0000 @@ -67,7 +67,7 @@ Word unit, infolen; char r; - if (isalpha(path[0]) && path[1] == ':') { + if (isalpha((int)path[0]) && path[1] == ':') { unit = toupper(path[0]) - '@'; path += 2; } else { @@ -101,7 +101,7 @@ _abs_path(const char *name, char *buffer, int len) { char buf[4]; - if (isalpha(name[0]) && name[1] == ':' && name[2] == '\0') { + if (isalpha((int)name[0]) && name[1] == ':' && name[2] == '\0') { buf[0] = name[0]; buf[1] = name[1]; buf[2] = '.';