184 |
|
|
185 |
|
// Prototypes |
186 |
|
static void *redraw_func(void *arg); |
187 |
– |
static int event2keycode(XKeyEvent &ev); |
187 |
|
|
188 |
|
// From main_unix.cpp |
189 |
|
extern char *x_display_name; |
560 |
|
|
561 |
|
// Open display |
562 |
|
driver_window::driver_window(const video_mode &mode) |
563 |
< |
: gc(0), img(NULL), have_shm(false), mouse_grabbed(false), mac_cursor(0) |
563 |
> |
: gc(0), img(NULL), have_shm(false), mac_cursor(0), mouse_grabbed(false) |
564 |
|
{ |
565 |
|
int width = mode.x, height = mode.y; |
566 |
|
int aligned_width = (width + 15) & ~15; |
2188 |
|
static void update_display_static(driver_window *drv) |
2189 |
|
{ |
2190 |
|
// Incremental update code |
2191 |
< |
int wide = 0, high = 0, x1, x2, y1, y2, i, j; |
2191 |
> |
unsigned wide = 0, high = 0, x1, x2, y1, y2, i, j; |
2192 |
|
int bytes_per_row = VideoMonitor.mode.bytes_per_row; |
2193 |
|
int bytes_per_pixel = VideoMonitor.mode.bytes_per_row / VideoMonitor.mode.x; |
2194 |
|
uint8 *p, *p2; |