Mercurial > sdl-ios-xcode
diff src/video/gem/SDL_gemmouse.c @ 736:028e03e273c8
Use new C2P routine + corrections for iconification window
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Wed, 12 Nov 2003 18:49:29 +0000 |
parents | 189a6a3416c7 |
children | b8d311d90021 |
line wrap: on
line diff
--- a/src/video/gem/SDL_gemmouse.c Wed Nov 12 18:46:48 2003 +0000 +++ b/src/video/gem/SDL_gemmouse.c Wed Nov 12 18:49:29 2003 +0000 @@ -43,6 +43,8 @@ /* Defines */ +/*#define DEBUG_VIDEO_GEM 1*/ + #define MAXCURWIDTH 16 #define MAXCURHEIGHT 16 @@ -102,36 +104,46 @@ new_mform->mf_fg = 0; new_mform->mf_bg = 1; - for (i=0;i<MAXCURHEIGHT;i++) - { + for (i=0;i<MAXCURHEIGHT;i++) { new_mform->mf_mask[i]=0; new_mform->mf_data[i]=0; } if (w<=8) { - for (i=0;i<h;i++) - { + for (i=0;i<h;i++) { new_mform->mf_mask[i]= mask[i]<<8; new_mform->mf_data[i]= data[i]<<8; } } else { - for (i=0;i<h;i++) - { + for (i=0;i<h;i++) { new_mform->mf_mask[i]= mask[i<<1]<<8 | mask[(i<<1)+1]; new_mform->mf_data[i]= data[i<<1]<<8 | data[(i<<1)+1]; } } +#ifdef DEBUG_VIDEO_GEM + for (i=0; i<h ;i++) { + printf("sdl:video:gem: cursor, line %d = 0x%04x\n", i, new_mform->mf_mask[i]); + } + + printf("sdl:video:gem: CreateWMCursor(): done\n"); +#endif + return cursor; } int GEM_ShowWMCursor(_THIS, WMcursor *cursor) { +/* if (cursor == NULL) { graf_mouse(M_OFF, NULL); } else if (cursor->mform_p) { graf_mouse(USER_DEF, cursor->mform_p); } +*/ +#ifdef DEBUG_VIDEO_GEM + printf("sdl:video:gem: ShowWMCursor(0x%08x)\n", (long) cursor); +#endif return 1; }