diff options
author | rubidium <rubidium@openttd.org> | 2014-01-02 22:41:58 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-01-02 22:41:58 +0000 |
commit | 2618d960e30882c097ba8b68249bbae974700ac8 (patch) | |
tree | 3d5a349c6a13f6f843d5f6b56456faf91010af5b /src/video/allegro_v.cpp | |
parent | 456dba4889108027f8af9c94514978d06012b6e7 (diff) | |
download | openttd-2618d960e30882c097ba8b68249bbae974700ac8.tar.xz |
(svn r26209) -Codechange: remove some template magic and simplify some code
Diffstat (limited to 'src/video/allegro_v.cpp')
-rw-r--r-- | src/video/allegro_v.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video/allegro_v.cpp b/src/video/allegro_v.cpp index 963353f0d..f844c6d0d 100644 --- a/src/video/allegro_v.cpp +++ b/src/video/allegro_v.cpp @@ -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(); |