Changeset 438 for pwntcha/trunk
- Timestamp:
- Jan 9, 2005, 1:24:24 AM (16 years ago)
- Location:
- pwntcha/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pwntcha/trunk/src/common.h
r430 r438 19 19 20 20 /* global variables */ 21 extern char *argv0; 21 22 extern char *share; 22 23 -
pwntcha/trunk/src/image.c
r435 r438 45 45 HDC dc; 46 46 long scrwidth = 0, scrheight = 0; 47 int width, height , i;47 int width, height; 48 48 void *data = NULL; 49 49 #elif defined(HAVE_SDL_IMAGE_H) … … 65 65 } 66 66 67 dc = CreateCompatibleDC(NULL); 68 67 #if 0 69 68 for(i = 0; ; i++) 70 69 { … … 75 74 break; 76 75 77 /* printf("mode %i x %i - %i\n", (int)devMode.dmPelsWidth, 78 (int)devMode.dmPelsHeight, (int)devMode.dmBitsPerPel); */ 79 } 76 printf("mode %i x %i - %i\n", (int)devMode.dmPelsWidth, 77 (int)devMode.dmPelsHeight, (int)devMode.dmBitsPerPel); 78 } 79 #endif 80 81 pic->lpVtbl->get_CurDC(pic, &dc); 80 82 81 83 if(GetDeviceCaps(dc, BITSPIXEL) < 24) 82 84 { 83 fprintf(stderr, " a screen depth of at least 24bpp is required\n");85 fprintf(stderr, "%s: 24bpp screen depth or better required\n", argv0); 84 86 DeleteDC(dc); 85 87 free(priv);
Note: See TracChangeset
for help on using the changeset viewer.