|
|
|
@ -84,37 +84,7 @@ class WindowQuartzSubdriver;
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
class WindowQuartzSubdriver: public CocoaSubdriver {
|
|
|
|
|
int device_width;
|
|
|
|
|
int device_height;
|
|
|
|
|
|
|
|
|
|
int window_width;
|
|
|
|
|
int window_height;
|
|
|
|
|
|
|
|
|
|
int buffer_depth;
|
|
|
|
|
|
|
|
|
|
void *pixel_buffer;
|
|
|
|
|
void *window_buffer;
|
|
|
|
|
|
|
|
|
|
id window;
|
|
|
|
|
|
|
|
|
|
#define MAX_DIRTY_RECTS 100
|
|
|
|
|
Rect dirty_rects[MAX_DIRTY_RECTS];
|
|
|
|
|
int num_dirty_rects;
|
|
|
|
|
|
|
|
|
|
uint32 palette[256];
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
bool active;
|
|
|
|
|
bool setup;
|
|
|
|
|
|
|
|
|
|
id cocoaview;
|
|
|
|
|
CGContextRef cgcontext;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
void GetDeviceInfo();
|
|
|
|
|
|
|
|
|
|
bool SetVideoMode(int width, int height);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* This function copies 8bpp pixels from the screen buffer in 32bpp windowed mode.
|
|
|
|
|
*
|
|
|
|
@ -125,6 +95,9 @@ private:
|
|
|
|
|
*/
|
|
|
|
|
void BlitIndexedToView32(int left, int top, int right, int bottom);
|
|
|
|
|
|
|
|
|
|
virtual void GetDeviceInfo();
|
|
|
|
|
virtual bool SetVideoMode(int width, int height);
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
WindowQuartzSubdriver(int bpp);
|
|
|
|
|
virtual ~WindowQuartzSubdriver();
|
|
|
|
|