From 5e4c2b7bb952804b668c5184247b5459947769a1 Mon Sep 17 00:00:00 2001 From: gbeauche <> Date: Sun, 14 May 2006 08:32:33 +0000 Subject: [PATCH] NQD dirty boxes, X11 backend. --- SheepShaver/src/Unix/video_x.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/SheepShaver/src/Unix/video_x.cpp b/SheepShaver/src/Unix/video_x.cpp index e4d3debb..921a9cb7 100644 --- a/SheepShaver/src/Unix/video_x.cpp +++ b/SheepShaver/src/Unix/video_x.cpp @@ -2557,5 +2557,17 @@ static void *redraw_func(void *arg) void video_set_dirty_area(int x, int y, int w, int h) { - // TBD + VideoInfo const & mode = VModes[cur_mode]; + const int screen_width = VIDEO_MODE_X; + const int screen_height = VIDEO_MODE_Y; + const int bytes_per_row = VIDEO_MODE_ROW_BYTES; + +#ifdef ENABLE_VOSF + if (use_vosf) { + vosf_set_dirty_area(x, y, w, h, screen_width, screen_height, bytes_per_row); + return; + } +#endif + + // XXX handle dirty bounding boxes for non-VOSF modes }