From 790fa7102ec934544b427dd5fa9fc4f7099fd4da Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Sat, 20 Feb 2021 11:08:20 +0100 Subject: 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. --- src/video/allegro_v.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/video/allegro_v.cpp') diff --git a/src/video/allegro_v.cpp b/src/video/allegro_v.cpp index 5ddc8b808..9b5b2e1d9 100644 --- a/src/video/allegro_v.cpp +++ b/src/video/allegro_v.cpp @@ -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. */ -- cgit v1.2.3-54-g00ecf