src/video/cocoa/wnd_quartz.mm
changeset 8623 652df321c912
parent 8588 9a8122b510f9
child 8627 448ebf3a8291
equal deleted inserted replaced
8622:b917f0b0dd6b 8623:652df321c912
    38 
    38 
    39 
    39 
    40 #include "../../stdafx.h"
    40 #include "../../stdafx.h"
    41 #include "../../debug.h"
    41 #include "../../debug.h"
    42 #include "../../variables.h"
    42 #include "../../variables.h"
       
    43 #include "../../core/geometry_type.hpp"
    43 #include "cocoa_v.h"
    44 #include "cocoa_v.h"
    44 
    45 #include "../../functions.h"
    45 #undef Point
    46 #include "../../core/math_func.hpp"
       
    47 #include "../../gfx_func.h"
       
    48 
    46 #undef Rect
    49 #undef Rect
    47 
    50 
    48 
    51 
    49 class WindowQuartzSubdriver;
    52 class WindowQuartzSubdriver;
    50 
    53 
   134 
   137 
   135 	virtual void Draw();
   138 	virtual void Draw();
   136 	virtual void MakeDirty(int left, int top, int width, int height);
   139 	virtual void MakeDirty(int left, int top, int width, int height);
   137 	virtual void UpdatePalette(uint first_color, uint num_colors);
   140 	virtual void UpdatePalette(uint first_color, uint num_colors);
   138 
   141 
   139 	virtual uint ListModes(OTTDPoint* modes, uint max_modes);
   142 	virtual uint ListModes(OTTD_Point* modes, uint max_modes);
   140 
   143 
   141 	virtual bool ChangeResolution(int w, int h);
   144 	virtual bool ChangeResolution(int w, int h);
   142 
   145 
   143 	virtual bool IsFullscreen() { return false; }
   146 	virtual bool IsFullscreen() { return false; }
   144 
   147 
   655 	}
   658 	}
   656 
   659 
   657 	num_dirty_rects = MAX_DIRTY_RECTS;
   660 	num_dirty_rects = MAX_DIRTY_RECTS;
   658 }
   661 }
   659 
   662 
   660 uint WindowQuartzSubdriver::ListModes(OTTDPoint* modes, uint max_modes)
   663 uint WindowQuartzSubdriver::ListModes(OTTD_Point* modes, uint max_modes)
   661 {
   664 {
   662 	if (max_modes == 0) return 0;
   665 	if (max_modes == 0) return 0;
   663 
   666 
   664 	modes[0].x = window_width;
   667 	modes[0].x = window_width;
   665 	modes[0].y = window_height;
   668 	modes[0].y = window_height;