Changeset 45036 in vbox for trunk/src/VBox/HostServices/SharedOpenGL
- Timestamp:
- Mar 14, 2013 11:25:56 AM (12 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL/render
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu.c
r44997 r45036 613 613 window = (WindowInfo *) crHashtableSearch(render_spu.windowTable, win); 614 614 if (window) { 615 GLboolean visible; 615 616 if (window->nativeWindow) { 616 617 /* We're rendering back to the native app window instead of the … … 620 621 flag = 0; 621 622 } 622 renderspu_SystemShowWindow( window, (GLboolean) flag ); 623 624 visible = !!flag; 625 626 if (window->visible != visible) 627 { 628 renderspu_SystemShowWindow( window, visible ); 629 window->visible != visible; 630 } 623 631 } 624 632 else { -
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_agl.c
r44997 r45036 603 603 CHECK_CARBON_RC_RETURN_VOID (status, "Render SPU (renderspu_SystemShowWindow): PostEventToQueue Failed"); 604 604 } 605 /* Save the new value */606 window->visible = showIt;607 605 } 608 606 -
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_glx.c
r44997 r45036 1754 1754 } 1755 1755 else { 1756 if (!w || !h) 1757 { 1758 /* X can not handle zero sizes */ 1759 if (window->visible) 1760 { 1761 renderspu_SystemShowWindow( window, GL_FALSE ); 1762 return; 1763 } 1764 } 1756 1765 /* Resize ordinary X window */ 1757 1766 /* … … 1767 1776 XResizeWindow(window->visual->dpy, window->window, w, h); 1768 1777 XSync(window->visual->dpy, 0); 1778 1779 if (!window->BltInfo.width || !window->BltInfo.height) 1780 { 1781 /* we have hidden the window instead of sizing it to (0;0) since X is unable to handle zero sizes */ 1782 if (window->visible) 1783 { 1784 renderspu_SystemShowWindow( window, GL_TRUE ); 1785 return; 1786 } 1787 } 1769 1788 #if 0 1770 1789 for (attempt = 0; attempt < 3; attempt++) { /* try three times max */ … … 1779 1798 #endif 1780 1799 } 1781 1782 /* finally, save the new size */1783 window->BltInfo.width = w;1784 window->BltInfo.height = h;1785 1800 } 1786 1801 … … 1952 1967 XSync(window->visual->dpy, 0); 1953 1968 } 1954 window->visible = showIt;1955 1969 } 1956 1970 } -
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_wgl.c
r44997 r45036 1242 1242 DeleteObject(hRgn); 1243 1243 } 1244 window->visible = showIt;1245 1244 } 1246 1245
Note:
See TracChangeset
for help on using the changeset viewer.