diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-04-23 16:35:31 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-04-23 16:41:47 +0200 |
commit | a1ec6e065a1d39426949a322eeb67f8fb9f854e5 (patch) | |
tree | 008de505a298d7b8b86e22b7066bcd9b6858aef6 /client/windows | |
parent | b2165b4d04435db32eec01e9389fce6d20bcd040 (diff) | |
download | spice-a1ec6e065a1d39426949a322eeb67f8fb9f854e5.tar.gz spice-a1ec6e065a1d39426949a322eeb67f8fb9f854e5.tar.xz spice-a1ec6e065a1d39426949a322eeb67f8fb9f854e5.zip |
Fix up win32 client with recent changes
Diffstat (limited to 'client/windows')
-rw-r--r-- | client/windows/red_pixmap_gdi.cpp | 2 | ||||
-rw-r--r-- | client/windows/red_window.cpp | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/client/windows/red_pixmap_gdi.cpp b/client/windows/red_pixmap_gdi.cpp index 322d0209..b6449b9f 100644 --- a/client/windows/red_pixmap_gdi.cpp +++ b/client/windows/red_pixmap_gdi.cpp @@ -30,7 +30,7 @@ struct RedPixmap_p { }; RedPixmapGdi::RedPixmapGdi(int width, int height, RedDrawable::Format format, bool top_bottom) - : RedPixmap(width, height, format, top_bottom, pallet) + : RedPixmap(width, height, format, top_bottom ) { ASSERT(format == RedDrawable::ARGB32 || format == RedDrawable::RGB32 || format == RedDrawable::A1); ASSERT(sizeof(RedPixmap_p) <= PIXELES_SOURCE_OPAQUE_SIZE); diff --git a/client/windows/red_window.cpp b/client/windows/red_window.cpp index def25870..80a282a0 100644 --- a/client/windows/red_window.cpp +++ b/client/windows/red_window.cpp @@ -364,6 +364,15 @@ void RedWindow_p::destroy(PixelsSource_p& pixels_source) DestroyWindow(_win); } +RedDrawable::Format RedWindow::get_format() +{ + /* TODO: Windows will convert types when + blitting, so this works (and is what we did before). + but it would be better to return the right format here */ + return RedDrawable::RGB32; +} + + void RedWindow_p::on_pos_changing(RedWindow& red_window) { if (_minimized || IsIconic(_win)) { |