Mercurial > sdl-ios-xcode
comparison src/video/gem/SDL_gemvideo.c @ 926:83db694556eb
Give mouse position relative to window position, and do not generate mouse button event if outside of the window
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Tue, 10 Aug 2004 18:53:38 +0000 |
parents | 15ff92ae7e1b |
children | 51ec8fc8bedb |
comparison
equal
deleted
inserted
replaced
925:15ff92ae7e1b | 926:83db694556eb |
---|---|
398 GEM_icon_name = empty_name; | 398 GEM_icon_name = empty_name; |
399 | 399 |
400 GEM_handle = -1; | 400 GEM_handle = -1; |
401 GEM_locked = SDL_FALSE; | 401 GEM_locked = SDL_FALSE; |
402 GEM_win_fulled = SDL_FALSE; | 402 GEM_win_fulled = SDL_FALSE; |
403 GEM_fullscreen = SDL_FALSE; | |
403 | 404 |
404 VDI_screen = NULL; | 405 VDI_screen = NULL; |
405 VDI_pitch = VDI_w * VDI_pixelsize; | 406 VDI_pitch = VDI_w * VDI_pixelsize; |
406 VDI_format = ( (VDI_bpp <= 8) ? VDI_FORMAT_INTER : VDI_FORMAT_PACK); | 407 VDI_format = ( (VDI_bpp <= 8) ? VDI_FORMAT_INTER : VDI_FORMAT_PACK); |
407 VDI_redmask = VDI_greenmask = VDI_bluemask = VDI_alphamask = 0; | 408 VDI_redmask = VDI_greenmask = VDI_bluemask = VDI_alphamask = 0; |
639 if (VDI_screen && (VDI_format==VDI_FORMAT_PACK) && !use_shadow1) { | 640 if (VDI_screen && (VDI_format==VDI_FORMAT_PACK) && !use_shadow1) { |
640 modeflags |= SDL_HWSURFACE; | 641 modeflags |= SDL_HWSURFACE; |
641 } else { | 642 } else { |
642 modeflags |= SDL_SWSURFACE; | 643 modeflags |= SDL_SWSURFACE; |
643 } | 644 } |
645 | |
646 GEM_fullscreen = SDL_TRUE; | |
644 } else { | 647 } else { |
645 int old_win_type; | 648 int old_win_type; |
646 short x2,y2,w2,h2; | 649 short x2,y2,w2,h2; |
647 | 650 |
648 GEM_UnlockScreen(this); | 651 GEM_UnlockScreen(this); |
699 GEM_refresh_name = SDL_FALSE; | 702 GEM_refresh_name = SDL_FALSE; |
700 } | 703 } |
701 | 704 |
702 /* Open the window */ | 705 /* Open the window */ |
703 wind_open(GEM_handle,x2,y2,w2,h2); | 706 wind_open(GEM_handle,x2,y2,w2,h2); |
707 | |
708 GEM_fullscreen = SDL_FALSE; | |
704 } | 709 } |
705 | 710 |
706 /* Set up the new mode framebuffer */ | 711 /* Set up the new mode framebuffer */ |
707 current->flags = modeflags; | 712 current->flags = modeflags; |
708 current->w = width; | 713 current->w = width; |