mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-15 13:51:24 +00:00
Eliminate spurous screen updates.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4857 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
28e1071183
commit
b115bb3feb
@ -203,7 +203,9 @@ static void ssd0303_update_display(void *opaque)
|
|||||||
int dest_width;
|
int dest_width;
|
||||||
uint8_t mask;
|
uint8_t mask;
|
||||||
|
|
||||||
if (s->redraw) {
|
if (!s->redraw)
|
||||||
|
return;
|
||||||
|
|
||||||
switch (s->ds->depth) {
|
switch (s->ds->depth) {
|
||||||
case 0:
|
case 0:
|
||||||
return;
|
return;
|
||||||
@ -251,7 +253,7 @@ static void ssd0303_update_display(void *opaque)
|
|||||||
dest += dest_width * 96;
|
dest += dest_width * 96;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
s->redraw = 0;
|
||||||
dpy_update(s->ds, 0, 0, 96 * MAGNIFY, 16 * MAGNIFY);
|
dpy_update(s->ds, 0, 0, 96 * MAGNIFY, 16 * MAGNIFY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -184,7 +184,9 @@ static void ssd0323_update_display(void *opaque)
|
|||||||
char *p;
|
char *p;
|
||||||
int dest_width;
|
int dest_width;
|
||||||
|
|
||||||
if (s->redraw) {
|
if (!s->redraw)
|
||||||
|
return;
|
||||||
|
|
||||||
switch (s->ds->depth) {
|
switch (s->ds->depth) {
|
||||||
case 0:
|
case 0:
|
||||||
return;
|
return;
|
||||||
@ -255,7 +257,7 @@ static void ssd0323_update_display(void *opaque)
|
|||||||
dest += dest_width * 128 * MAGNIFY;
|
dest += dest_width * 128 * MAGNIFY;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
s->redraw = 0;
|
||||||
dpy_update(s->ds, 0, 0, 128 * MAGNIFY, 64 * MAGNIFY);
|
dpy_update(s->ds, 0, 0, 128 * MAGNIFY, 64 * MAGNIFY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user