Commit c0c440f39cff00572c98e3f03e66db30f349114e

Authored by Blue Swirl
1 parent 12c7e75a

Synch to VGA

Showing 1 changed file with 4 additions and 4 deletions
hw/tcx.c
... ... @@ -197,7 +197,7 @@ static void tcx_update_display(void *opaque)
197 197 return;
198 198 page = ts->vram_offset;
199 199 y_start = -1;
200   - page_min = 0xffffffff;
  200 + page_min = -1;
201 201 page_max = 0;
202 202 d = ds_get_data(ts->ds);
203 203 s = ts->vram;
... ... @@ -257,7 +257,7 @@ static void tcx_update_display(void *opaque)
257 257 ts->width, y - y_start);
258 258 }
259 259 /* reset modified pages */
260   - if (page_min <= page_max) {
  260 + if (page_max >= page_min) {
261 261 cpu_physical_memory_reset_dirty(page_min, page_max + TARGET_PAGE_SIZE,
262 262 VGA_DIRTY_FLAG);
263 263 }
... ... @@ -277,7 +277,7 @@ static void tcx24_update_display(void *opaque)
277 277 page24 = ts->vram24_offset;
278 278 cpage = ts->cplane_offset;
279 279 y_start = -1;
280   - page_min = 0xffffffff;
  280 + page_min = -1;
281 281 page_max = 0;
282 282 d = ds_get_data(ts->ds);
283 283 s = ts->vram;
... ... @@ -334,7 +334,7 @@ static void tcx24_update_display(void *opaque)
334 334 ts->width, y - y_start);
335 335 }
336 336 /* reset modified pages */
337   - if (page_min <= page_max) {
  337 + if (page_max >= page_min) {
338 338 reset_dirty(ts, page_min, page_max, page24, cpage);
339 339 }
340 340 }
... ...