forked from mirror/OpenTTD
Codechange: be consistent in naming the paint function Paint()
Also move this function to be a class member. This to allow further deduplicating of code in a later commit.
This commit is contained in:
committed by
Patric Stout
parent
761efbb457
commit
790fa7102e
@@ -56,7 +56,7 @@ void VideoDriver_Allegro::MakeDirty(int left, int top, int width, int height)
|
||||
_num_dirty_rects++;
|
||||
}
|
||||
|
||||
static void DrawSurfaceToScreen()
|
||||
void VideoDriver_Allegro::Paint()
|
||||
{
|
||||
PerformanceMeasurer framerate(PFE_VIDEO);
|
||||
|
||||
@@ -524,7 +524,7 @@ void VideoDriver_Allegro::MainLoop()
|
||||
UpdateWindows();
|
||||
CheckPaletteAnim();
|
||||
|
||||
DrawSurfaceToScreen();
|
||||
this->Paint();
|
||||
}
|
||||
|
||||
/* If we are not in fast-forward, create some time between calls to ease up CPU usage. */
|
||||
|
Reference in New Issue
Block a user