X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=glws_wgl.cpp;h=9e8f1e036432a81298b135004c835e790a1e773f;hb=ac92a2115ab3c759add836e115f108c945e0195b;hp=94390da221f3b8b13eed1d74622da2d09cedb06d;hpb=9b36190d367a32d7d72234f763df23968f00b1e8;p=apitrace diff --git a/glws_wgl.cpp b/glws_wgl.cpp index 94390da..9e8f1e0 100644 --- a/glws_wgl.cpp +++ b/glws_wgl.cpp @@ -81,7 +81,7 @@ public: } dwExStyle = 0; - dwStyle = WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_VISIBLE | WS_OVERLAPPEDWINDOW; + dwStyle = WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_OVERLAPPEDWINDOW; int x = 0, y = 0; @@ -145,6 +145,14 @@ public: SetWindowPos(hWnd, NULL, rWindow.left, rWindow.top, w, h, SWP_NOMOVE); } + void show(void) { + if (!visible) { + ShowWindow(hWnd, SW_SHOW); + + Drawable::show(); + } + } + void swapBuffers(void) { SwapBuffers(hDC); }