Rev 9561 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9561 | Rev 9769 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | /* The high-level video driver subsystem */ |
24 | /* The high-level video driver subsystem */ |
Line 25... | Line 25... | ||
25 | 25 | ||
26 | #include |
26 | #include |
27 | #include |
27 | #include |
- | 28 | #include |
|
Line 28... | Line 29... | ||
28 | #include |
29 | #include |
29 | 30 | ||
30 | #include "SDL.h" |
31 | #include "SDL.h" |
31 | #include "SDL_error.h" |
32 | #include "SDL_error.h" |
Line 111... | Line 112... | ||
111 | static SDL_GrabMode SDL_WM_GrabInputOff(void); |
112 | static SDL_GrabMode SDL_WM_GrabInputOff(void); |
112 | #ifdef HAVE_OPENGL |
113 | #ifdef HAVE_OPENGL |
113 | static int lock_count = 0; |
114 | static int lock_count = 0; |
114 | #endif |
115 | #endif |
Line 115... | Line -... | ||
115 | - | ||
116 | - | ||
117 | typedef union{ |
- | |
118 | unsigned val; |
- | |
119 | struct{ |
- | |
120 | short x; |
- | |
121 | short y; |
- | |
122 | }; |
- | |
123 | }ksys_pos_t; |
- | |
124 | - | ||
125 | static inline |
- | |
126 | ksys_pos_t _ksys_screen_size() |
- | |
127 | { |
- | |
128 | ksys_pos_t size; |
- | |
129 | ksys_pos_t size_tmp; |
- | |
130 | __asm__ __volatile__( |
- | |
131 | "int $0x40" |
- | |
132 | :"=a"(size_tmp) |
- | |
133 | :"a"(14) |
- | |
134 | :"memory" |
- | |
135 | ); |
- | |
136 | size.x = size_tmp.y; |
- | |
137 | size.y = size_tmp.x; |
- | |
138 | return size; |
- | |
139 | } |
- | |
140 | - | ||
141 | 116 | ||
142 | /* |
117 | /* |
143 | * Initialize the video and event subsystems -- determine native pixel format |
118 | * Initialize the video and event subsystems -- determine native pixel format |
144 | */ |
119 | */ |
145 | int SDL_VideoInit (const char *driver_name, Uint32 flags) |
120 | int SDL_VideoInit (const char *driver_name, Uint32 flags) |