comparison src/video/gem/SDL_gemvideo.c @ 305:9c6613983e85

Atari port cleanups from Patrice
author Sam Lantinga <slouken@libsdl.org>
date Sun, 10 Mar 2002 03:33:59 +0000
parents f6ffac90895c
children 189a6a3416c7
comparison
equal deleted inserted replaced
304:ec53caed9fb2 305:9c6613983e85
58 #include "SDL_atarimxalloc_c.h" 58 #include "SDL_atarimxalloc_c.h"
59 #include "SDL_gemvideo.h" 59 #include "SDL_gemvideo.h"
60 #include "SDL_gemevents_c.h" 60 #include "SDL_gemevents_c.h"
61 #include "SDL_gemmouse_c.h" 61 #include "SDL_gemmouse_c.h"
62 #include "SDL_gemwm_c.h" 62 #include "SDL_gemwm_c.h"
63 #include "SDL_xbiosevents_c.h"
63 64
64 /* Defines */ 65 /* Defines */
65 66
66 #define GEM_VID_DRIVER_NAME "gem" 67 #define GEM_VID_DRIVER_NAME "gem"
67 68
173 device->FreeWMCursor = GEM_FreeWMCursor; 174 device->FreeWMCursor = GEM_FreeWMCursor;
174 device->CreateWMCursor = GEM_CreateWMCursor; 175 device->CreateWMCursor = GEM_CreateWMCursor;
175 device->ShowWMCursor = GEM_ShowWMCursor; 176 device->ShowWMCursor = GEM_ShowWMCursor;
176 device->WarpWMCursor = GEM_WarpWMCursor; 177 device->WarpWMCursor = GEM_WarpWMCursor;
177 device->CheckMouseMode = GEM_CheckMouseMode; 178 device->CheckMouseMode = GEM_CheckMouseMode;
179
180 /* Joystick */
181 SDL_AtariXbios_InstallVectors(ATARI_XBIOS_JOYSTICKEVENTS);
178 182
179 device->free = GEM_DeleteDevice; 183 device->free = GEM_DeleteDevice;
180 184
181 return device; 185 return device;
182 } 186 }
935 /* Note: If we are terminated, this could be called in the middle of 939 /* Note: If we are terminated, this could be called in the middle of
936 another SDL video routine -- notably UpdateRects. 940 another SDL video routine -- notably UpdateRects.
937 */ 941 */
938 void GEM_VideoQuit(_THIS) 942 void GEM_VideoQuit(_THIS)
939 { 943 {
944 SDL_AtariXbios_RestoreVectors();
945
940 GEM_FreeBuffers(this); 946 GEM_FreeBuffers(this);
941 947
942 if (GEM_locked) { 948 if (GEM_locked) {
943 /* Restore screen memory, and send REDRAW to all apps */ 949 /* Restore screen memory, and send REDRAW to all apps */
944 form_dial( FMD_FINISH, 0,0,0,0, 0,0,VDI_w,VDI_h); 950 form_dial( FMD_FINISH, 0,0,0,0, 0,0,VDI_w,VDI_h);