diff options
author | Michael Lutz <michi@icosahedron.de> | 2021-02-11 22:54:43 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-02-13 22:21:17 +0100 |
commit | 13134f9d64fb873ab1ee0cca2cc4c4fa3c64a44a (patch) | |
tree | 67a7e7778cbb442a738de701c0ecf6bc225156a5 /src/video/cocoa/cocoa_v.h | |
parent | 88f6c7a9f353c3e78f30ddeaaeef91694af4d189 (diff) | |
download | openttd-13134f9d64fb873ab1ee0cca2cc4c4fa3c64a44a.tar.xz |
Codechange: [OSX] Replace #define with modern code.
Diffstat (limited to 'src/video/cocoa/cocoa_v.h')
-rw-r--r-- | src/video/cocoa/cocoa_v.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video/cocoa/cocoa_v.h b/src/video/cocoa/cocoa_v.h index adeadd3be..70adb18b5 100644 --- a/src/video/cocoa/cocoa_v.h +++ b/src/video/cocoa/cocoa_v.h @@ -32,9 +32,10 @@ private: void *pixel_buffer; ///< used for direct pixel access void *window_buffer; ///< Colour translation from palette to screen -# define MAX_DIRTY_RECTS 100 + static const int MAX_DIRTY_RECTS = 100; + Rect dirty_rects[MAX_DIRTY_RECTS]; ///< dirty rectangles - int num_dirty_rects = MAX_DIRTY_RECTS; ///< Number of dirty rectangles + uint num_dirty_rects; ///< Number of dirty rectangles uint32 palette[256]; ///< Colour Palette public: |