VirtualBox

Ignore:
Timestamp:
Aug 13, 2014 3:08:02 PM (10 years ago)
Author:
vboxsync
Message:

crOpenGL: fix white window on fullscreen enter

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/VBox

  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu.c

    r51975 r52368  
    758758        visible = !!flag;
    759759       
    760         if (window->visible != visible)
     760//        if (window->visible != visible)
    761761        {
    762762            renderspu_SystemShowWindow( window, visible );
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_cocoa_helper.m

    r51975 r52368  
    376376- (void)makeCurrentFBO;
    377377- (void)swapFBO;
     378- (void)vboxSubmitVisible:(GLboolean)fVisible;
     379- (void)vboxSetVisibleUI;
     380- (void)vboxSetHiddenUI;
    378381- (void)vboxTryDraw;
    379382- (void)vboxTryDrawUI;
     
    11791182    /* issue to the gui thread */
    11801183    [self setNeedsDisplay:YES];
     1184}
     1185
     1186- (void)vboxSubmitVisible:(GLboolean)fVisible
     1187{
     1188    if (fVisible)
     1189        [self performSelectorOnMainThread:@selector(vboxSetVisibleUI) withObject:nil waitUntilDone:NO];
     1190    else
     1191        [self performSelectorOnMainThread:@selector(vboxSetHiddenUI) withObject:nil waitUntilDone:NO];
     1192}
     1193
     1194- (void)vboxSetVisibleUI
     1195{
     1196    [self setHidden: NO];
     1197}
     1198
     1199- (void)vboxSetHiddenUI
     1200{
     1201    [self setHidden: YES];
    11811202}
    11821203
     
    18531874    NSAutoreleasePool *pPool = [[NSAutoreleasePool alloc] init];
    18541875
    1855     [pView setHidden: fShowIt==GL_TRUE?NO:YES];
     1876    [pView vboxSubmitVisible:fShowIt];
    18561877
    18571878    [pPool release];
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette