diff options
author | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-09-24 02:21:24 +0000 |
---|---|---|
committer | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-09-24 02:21:24 +0000 |
commit | 38334f76300260480e3bd3b77cb5b86fd3d66038 (patch) | |
tree | 26b7205a3350582c427e6534281c422dd9175cde /console.c | |
parent | 818220f5e9ef39fc5025b9f2277fac483d99d330 (diff) | |
download | qemu-38334f76300260480e3bd3b77cb5b86fd3d66038.tar.gz qemu-38334f76300260480e3bd3b77cb5b86fd3d66038.tar.bz2 qemu-38334f76300260480e3bd3b77cb5b86fd3d66038.zip |
Don't use ds->dpy_copy directly from hw/ (Jan Niehusmann).
I left a TODO in the code because this still doesn't definitely
fix all issues.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5308 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'console.c')
-rw-r--r-- | console.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -1343,3 +1343,16 @@ void qemu_console_resize(QEMUConsole *console, int width, int height) } } } + +void qemu_console_copy(QEMUConsole *console, int src_x, int src_y, + int dst_x, int dst_y, int w, int h) { + if (active_console == console) { + if (console->ds->dpy_copy) + console->ds->dpy_copy(console->ds, + src_x, src_y, dst_x, dst_y, w, h); + else { + /* TODO */ + console->ds->dpy_update(console->ds, dst_x, dst_y, w, h); + } + } +} |