aboutsummaryrefslogtreecommitdiff
path: root/hw/tcx.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-04-27 18:10:37 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-04-27 18:10:37 +0000
commitc0c440f39cff00572c98e3f03e66db30f349114e (patch)
tree180f0ad6749f226b9e54ea146bf2a4d1eb0c3de7 /hw/tcx.c
parent12c7e75a7c7048c0beb9196bbbedf0070ab29f53 (diff)
Synch to VGA
Diffstat (limited to 'hw/tcx.c')
-rw-r--r--hw/tcx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/tcx.c b/hw/tcx.c
index f0e8f2fc4d..99e65a0bfe 100644
--- a/hw/tcx.c
+++ b/hw/tcx.c
@@ -197,7 +197,7 @@ static void tcx_update_display(void *opaque)
return;
page = ts->vram_offset;
y_start = -1;
- page_min = 0xffffffff;
+ page_min = -1;
page_max = 0;
d = ds_get_data(ts->ds);
s = ts->vram;
@@ -257,7 +257,7 @@ static void tcx_update_display(void *opaque)
ts->width, y - y_start);
}
/* reset modified pages */
- if (page_min <= page_max) {
+ if (page_max >= page_min) {
cpu_physical_memory_reset_dirty(page_min, page_max + TARGET_PAGE_SIZE,
VGA_DIRTY_FLAG);
}
@@ -277,7 +277,7 @@ static void tcx24_update_display(void *opaque)
page24 = ts->vram24_offset;
cpage = ts->cplane_offset;
y_start = -1;
- page_min = 0xffffffff;
+ page_min = -1;
page_max = 0;
d = ds_get_data(ts->ds);
s = ts->vram;
@@ -334,7 +334,7 @@ static void tcx24_update_display(void *opaque)
ts->width, y - y_start);
}
/* reset modified pages */
- if (page_min <= page_max) {
+ if (page_max >= page_min) {
reset_dirty(ts, page_min, page_max, page24, cpage);
}
}