Can't Draw To Secondary Monitor
Can't Draw To Secondary Monitor
- Subject: Can't Draw To Secondary Monitor
- From: Joshua Orr <email@hidden>
- Date: Sun, 27 Apr 2003 19:16:06 -0600
I have a program that plays a video in a window. When the users wants to go
to full screen, the program gets the current screen the window is in, then
releases it, then it creates a new window in that screen with a window level
that the CGShieldingWindowLevel() function returns.
This works just fine for the main screen, but in a secondary screen it seems
to cover the secondary monitor with a black window, but it does not display
anything in it. It's always black. But when on the main monitor it
displays the movie just fine.
Can anyone help? I need to fix this fast... Any help would be appreciated!
Here is basically what the code does when it goes full screen:
NSScreen *theScreen = [mainWindow screen];
[mainWindow orderOut:self];
[mainWindow release];
screenRect = [theScreen frame];
windowLevel = CGShieldingWindowLevel();
mainWindow = [[NSWindow alloc]
initWithContentRect:screenRect
styleMask:NSBorderlessWindowMask
backing:NSBackingStoreBuffered
defer:NO
screen:[NSScreen mainScreen]];
[mainWindow setLevel:windowLevel];
-Joshua D. Orr-
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.