summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-06-19 15:40:27 +0000
committertruelight <truelight@openttd.org>2007-06-19 15:40:27 +0000
commit766168ad4322d74ce9d51fe6b68e2a3d35f9feae (patch)
tree82d616e05cde7feddf62bd0fa3ac79d565751b2d
parent1e73884c104ba14b127ac34cd124de470ee45e29 (diff)
downloadopenttd-766168ad4322d74ce9d51fe6b68e2a3d35f9feae.tar.xz
(svn r10220) -Fix r10216: even more fuck-ups for non-SDL video backends
-rw-r--r--src/gfx.cpp2
-rw-r--r--src/video/cocoa_v.mm4
-rw-r--r--src/video/win32_v.cpp4
3 files changed, 1 insertions, 9 deletions
diff --git a/src/gfx.cpp b/src/gfx.cpp
index c17316885..bbf263f68 100644
--- a/src/gfx.cpp
+++ b/src/gfx.cpp
@@ -663,9 +663,9 @@ void GfxInitPalettes()
{
memcpy(_cur_palette, _palettes[_use_dos_palette ? 1 : 0], sizeof(_cur_palette));
+ DoPaletteAnimations();
_pal_first_dirty = 0;
_pal_count_dirty = 255;
- DoPaletteAnimations();
}
#define EXTR(p, q) (((uint16)(_timer_counter * (p)) * (q)) >> 16)
diff --git a/src/video/cocoa_v.mm b/src/video/cocoa_v.mm
index f34525bc6..3083414b0 100644
--- a/src/video/cocoa_v.mm
+++ b/src/video/cocoa_v.mm
@@ -968,10 +968,6 @@ static void QZ_SetPortAlphaOpaque()
static void QZ_UpdateWindowPalette(uint start, uint count)
{
- /* We can only update the palette in 8bpp for now */
- /* TODO -- We need support for other bpps too! */
- if (BlitterFactoryBase::GetCurrentBlitter()->GetScreenDepth() != 8) return;
-
uint i;
switch (_cocoa_video_data.device_bpp) {
diff --git a/src/video/win32_v.cpp b/src/video/win32_v.cpp
index b0f8f4f1a..c0a47edc6 100644
--- a/src/video/win32_v.cpp
+++ b/src/video/win32_v.cpp
@@ -64,10 +64,6 @@ static void MakePalette()
static void UpdatePalette(HDC dc, uint start, uint count)
{
- /* We can only update the palette in 8bpp for now */
- /* TODO -- We need support for other bpps too! */
- if (BlitterFactoryBase::GetCurrentBlitter()->GetScreenDepth() != 8) return;
-
RGBQUAD rgb[256];
uint i;