forked from mirror/OpenTTD
(svn r26209) -Codechange: remove some template magic and simplify some code
This commit is contained in:
@@ -92,7 +92,7 @@ static void InitPalette()
|
||||
static void CheckPaletteAnim()
|
||||
{
|
||||
if (_cur_palette.count_dirty != 0) {
|
||||
Blitter *blitter = BlitterFactoryBase::GetCurrentBlitter();
|
||||
Blitter *blitter = BlitterFactory::GetCurrentBlitter();
|
||||
|
||||
switch (blitter->UsePaletteAnimation()) {
|
||||
case Blitter::PALETTE_ANIMATION_VIDEO_BACKEND:
|
||||
@@ -191,7 +191,7 @@ static void GetAvailableVideoMode(uint *w, uint *h)
|
||||
|
||||
static bool CreateMainSurface(uint w, uint h)
|
||||
{
|
||||
int bpp = BlitterFactoryBase::GetCurrentBlitter()->GetScreenDepth();
|
||||
int bpp = BlitterFactory::GetCurrentBlitter()->GetScreenDepth();
|
||||
if (bpp == 0) usererror("Can't use a blitter that blits 0 bpp for normal visuals");
|
||||
set_color_depth(bpp);
|
||||
|
||||
@@ -217,7 +217,7 @@ static bool CreateMainSurface(uint w, uint h)
|
||||
_cursor.pos.x = mouse_x;
|
||||
_cursor.pos.y = mouse_y;
|
||||
|
||||
BlitterFactoryBase::GetCurrentBlitter()->PostResize();
|
||||
BlitterFactory::GetCurrentBlitter()->PostResize();
|
||||
|
||||
InitPalette();
|
||||
|
||||
|
Reference in New Issue
Block a user