diff options
author | Michael Lutz <michi@icosahedron.de> | 2021-01-24 13:12:55 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-02-13 22:21:17 +0100 |
commit | 8ced72ab10b12a33ef5e71f8b346f63a0db0f862 (patch) | |
tree | b17e93ba9c7cd698a0d3bc2a6b6146cc06e612c5 /src/video/cocoa/cocoa_v.h | |
parent | 13134f9d64fb873ab1ee0cca2cc4c4fa3c64a44a (diff) | |
download | openttd-8ced72ab10b12a33ef5e71f8b346f63a0db0f862.tar.xz |
Codechange: [OSX] Inline some functions that are used in only one place.
Diffstat (limited to 'src/video/cocoa/cocoa_v.h')
-rw-r--r-- | src/video/cocoa/cocoa_v.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/video/cocoa/cocoa_v.h b/src/video/cocoa/cocoa_v.h index 70adb18b5..bae0f5289 100644 --- a/src/video/cocoa/cocoa_v.h +++ b/src/video/cocoa/cocoa_v.h @@ -22,7 +22,6 @@ private: int device_width; ///< Width of device in pixel int device_height; ///< Height of device in pixel - int device_depth; ///< Colour depth of device in bit int window_width; ///< Current window width in pixel int window_height; ///< Current window height in pixel @@ -142,25 +141,11 @@ private: /** Update the palette */ void UpdatePalette(uint first_color, uint num_colors); - uint ListModes(OTTD_Point *modes, uint max_modes); - - /** Change window resolution - * @param w New window width - * @param h New window height - * @return Whether change was successful - */ - bool ChangeResolution(int w, int h, int bpp); - /** Are we in fullscreen mode * @return whether fullscreen mode is currently used */ bool IsFullscreen(); - /** Return the current pixel buffer - * @return pixelbuffer - */ - void *GetPixelBuffer() { return buffer_depth == 8 ? pixel_buffer : window_buffer; } - /** Return the mouse location * @param event UI event * @return mouse location as NSPoint |