summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-06-19 15:26:10 +0000
committerglx <glx@openttd.org>2007-06-19 15:26:10 +0000
commit6f25b5db0d24dd108c39193f6b749169e4d814e5 (patch)
tree8684b706fc819847c136d23e6ba9a51a6bce5983 /src
parentf5271393e1bd79cba7ce7fce6f944d048c512d6f (diff)
downloadopenttd-6f25b5db0d24dd108c39193f6b749169e4d814e5.tar.xz
(svn r10218) -Fix r10216: more compile errors
Diffstat (limited to 'src')
-rw-r--r--src/video/win32_v.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video/win32_v.cpp b/src/video/win32_v.cpp
index cf7afea03..b0f8f4f1a 100644
--- a/src/video/win32_v.cpp
+++ b/src/video/win32_v.cpp
@@ -236,7 +236,7 @@ static LRESULT CALLBACK WndProcGdi(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP
switch (blitter->UsePaletteAnimation()) {
case Blitter::PALETTE_ANIMATION_VIDEO_BACKEND:
- UpdatePalette(_pal_first_dirty, _pal_count_dirty);
+ UpdatePalette(dc2, _pal_first_dirty, _pal_count_dirty);
break;
case Blitter::PALETTE_ANIMATION_BLITTER:
@@ -793,7 +793,7 @@ static void Win32GdiMakeDirty(int left, int top, int width, int height)
static void CheckPaletteAnim()
{
- if (_pal_last_dirty == -1)
+ if (_pal_count_dirty == 0)
return;
InvalidateRect(_wnd.main_wnd, NULL, FALSE);
}