summaryrefslogtreecommitdiff
path: root/src/video/cocoa/cocoa_v.h
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-02-20 11:08:20 +0100
committerPatric Stout <github@truebrain.nl>2021-02-20 17:08:44 +0100
commit790fa7102ec934544b427dd5fa9fc4f7099fd4da (patch)
tree7eeb947fad5f31e517e23d0e9d44693f510889f7 /src/video/cocoa/cocoa_v.h
parent761efbb4571397fe9e5f19049ca64663e12cbc1e (diff)
downloadopenttd-790fa7102ec934544b427dd5fa9fc4f7099fd4da.tar.xz
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.
Diffstat (limited to 'src/video/cocoa/cocoa_v.h')
-rw-r--r--src/video/cocoa/cocoa_v.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/cocoa/cocoa_v.h b/src/video/cocoa/cocoa_v.h
index f42d57dfe..09668ed8b 100644
--- a/src/video/cocoa/cocoa_v.h
+++ b/src/video/cocoa/cocoa_v.h
@@ -75,6 +75,7 @@ protected:
Dimension GetScreenSize() const override;
float GetDPIScale() override;
void InputLoop() override;
+ void Paint() override;
private:
bool PollEvent();
@@ -89,7 +90,6 @@ private:
void UpdatePalette(uint first_color, uint num_colors);
void CheckPaletteAnim();
- void Draw(bool force_update = false);
void BlitIndexedToView32(int left, int top, int right, int bottom);
};