mirror of https://github.com/OpenTTD/OpenTTD
(svn r10218) -Fix r10216: more compile errors
parent
a7dd710f06
commit
fc3ec8689b
|
@ -236,7 +236,7 @@ static LRESULT CALLBACK WndProcGdi(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP
|
||||||
|
|
||||||
switch (blitter->UsePaletteAnimation()) {
|
switch (blitter->UsePaletteAnimation()) {
|
||||||
case Blitter::PALETTE_ANIMATION_VIDEO_BACKEND:
|
case Blitter::PALETTE_ANIMATION_VIDEO_BACKEND:
|
||||||
UpdatePalette(_pal_first_dirty, _pal_count_dirty);
|
UpdatePalette(dc2, _pal_first_dirty, _pal_count_dirty);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Blitter::PALETTE_ANIMATION_BLITTER:
|
case Blitter::PALETTE_ANIMATION_BLITTER:
|
||||||
|
@ -793,7 +793,7 @@ static void Win32GdiMakeDirty(int left, int top, int width, int height)
|
||||||
|
|
||||||
static void CheckPaletteAnim()
|
static void CheckPaletteAnim()
|
||||||
{
|
{
|
||||||
if (_pal_last_dirty == -1)
|
if (_pal_count_dirty == 0)
|
||||||
return;
|
return;
|
||||||
InvalidateRect(_wnd.main_wnd, NULL, FALSE);
|
InvalidateRect(_wnd.main_wnd, NULL, FALSE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue