From 98d91203c5d2f6f7249f38941466857b6a566f5d Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Mon, 19 Apr 2010 16:19:43 +0200 Subject: Make client canvas and pixmaps handle more formats and simplify We now support 16bit format pixmaps as well as the old ones. Including both 555 and 565 modes. We drop the palette argument for pixmap construction as it was only used for black/white anyway. Canvas creation is simplified so that there is no separate set_mode state. Canvases are already created in the right mode and never change. --- client/red_pixmap_gdi.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'client/red_pixmap_gdi.h') diff --git a/client/red_pixmap_gdi.h b/client/red_pixmap_gdi.h index 9e10adc1..524e6f31 100644 --- a/client/red_pixmap_gdi.h +++ b/client/red_pixmap_gdi.h @@ -25,8 +25,7 @@ class RecurciveMutex; class RedPixmapGdi: public RedPixmap { public: - RedPixmapGdi(int width, int height, Format format, bool top_bottom, - rgb32_t *pallete); + RedPixmapGdi(int width, int height, Format format, bool top_bottom); HDC get_dc(); void *get_memptr(); ~RedPixmapGdi(); -- cgit