comparison win/dw.c @ 1602:02641cd81203

Attempt to fix another Visual C warning in DEBUG mode building 32bit.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 26 Feb 2012 09:36:22 +0000
parents 71e0a3ad07f7
children fd3b7784ab53
comparison
equal deleted inserted replaced
1601:71e0a3ad07f7 1602:02641cd81203
4303 SetParent(handle, newparent); 4303 SetParent(handle, newparent);
4304 } 4304 }
4305 4305
4306 LOGFONT _get_logfont(HDC hdc, char *fontname) 4306 LOGFONT _get_logfont(HDC hdc, char *fontname)
4307 { 4307 {
4308 int z, size = 9, len = (int)strlen(fontname);
4308 int Italic, Bold; 4309 int Italic, Bold;
4309 char *myFontName; 4310 char *myFontName;
4310 int z, size = 9;
4311 LOGFONT lf = {0}; 4311 LOGFONT lf = {0};
4312 4312
4313 for(z=0;z<strlen(fontname);z++) 4313 for(z=0;z<len;z++)
4314 { 4314 {
4315 if(fontname[z]=='.') 4315 if(fontname[z]=='.')
4316 break; 4316 break;
4317 } 4317 }
4318 size = atoi(fontname); 4318 size = atoi(fontname);