From 1865cc057a1dd40a0bf30131cb91a318af136e0b Mon Sep 17 00:00:00 2001 From: nplourde Date: Wed, 15 Jun 2005 16:54:43 +0000 Subject: device_id flag force fullscreen device git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15729 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_macosx.m | 98 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 50 insertions(+), 48 deletions(-) (limited to 'libvo') diff --git a/libvo/vo_macosx.m b/libvo/vo_macosx.m index e04602d912..99fe6d6420 100644 --- a/libvo/vo_macosx.m +++ b/libvo/vo_macosx.m @@ -27,11 +27,12 @@ MPlayerOpenGLView *mpGLView; NSAutoreleasePool *autoreleasepool; OSType pixelFormat; -//Device -static int device_width; -static int device_height; -static int device_id; -static GDHandle device_handle; +//Screen +int screen_id; +BOOL screen_force; +NSRect screen_frame; +NSScreen *screen_handle; +NSArray *screen_array; //image unsigned char *image_data; @@ -86,27 +87,22 @@ static void draw_alpha(int x0, int y0, int w, int h, unsigned char *src, unsigne static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t flags, char *title, uint32_t format) { int i; - - //Get Main device info/////////////////////////////////////////////////// - device_handle = GetMainDevice(); - - for(i=0; i