194 |
|
|
195 |
|
mainBuffer.pageInfo = (ScreenPageInfo *) malloc(mainBuffer.pageCount * sizeof(ScreenPageInfo)); |
196 |
|
|
197 |
< |
if ((mainBuffer.dirtyPages == 0) || (mainBuffer.pageInfo == 0)) |
197 |
> |
if ((mainBuffer.dirtyPages == NULL) || (mainBuffer.pageInfo == NULL)) |
198 |
|
return false; |
199 |
|
|
200 |
|
mainBuffer.dirty = false; |
315 |
|
than pageCount. |
316 |
|
*/ |
317 |
|
|
318 |
< |
static inline void update_display_window_vosf(void) |
318 |
> |
static inline void update_display_window_vosf(driver_window *drv) |
319 |
|
{ |
320 |
|
int page = 0; |
321 |
|
for (;;) { |
357 |
|
} |
358 |
|
} |
359 |
|
|
360 |
< |
if (have_shm) |
361 |
< |
XShmPutImage(x_display, the_win, the_gc, img, 0, y1, 0, y1, VideoMonitor.mode.x, height, 0); |
360 |
> |
if (drv->have_shm) |
361 |
> |
XShmPutImage(x_display, drv->w, drv->gc, drv->img, 0, y1, 0, y1, VideoMonitor.mode.x, height, 0); |
362 |
|
else |
363 |
< |
XPutImage(x_display, the_win, the_gc, img, 0, y1, 0, y1, VideoMonitor.mode.x, height); |
363 |
> |
XPutImage(x_display, drv->w, drv->gc, drv->img, 0, y1, 0, y1, VideoMonitor.mode.x, height); |
364 |
|
} |
365 |
|
mainBuffer.dirty = false; |
366 |
|
} |