ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/video_vosf.h
(Generate patch)

Comparing BasiliskII/src/Unix/video_vosf.h (file contents):
Revision 1.20 by gbeauche, 2001-06-28T22:06:18Z vs.
Revision 1.21 by cebix, 2001-06-30T17:21:54Z

# Line 194 | Line 194 | static bool video_init_buffer(void)
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;
# Line 315 | Line 315 | There are two cases to check:
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 (;;) {
# Line 357 | Line 357 | static inline void update_display_window
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   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines