mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-08 07:54:05 +00:00
Windows: Moved pixel format logic from WindowsDisplayPeerInfo.initDC to WindowsDisplay.createWindow
This commit is contained in:
parent
bf4b5a5890
commit
b11fcc99f6
2 changed files with 6 additions and 2 deletions
|
|
@ -174,6 +174,8 @@ final class WindowsDisplay implements DisplayImplementation {
|
|||
throw new LWJGLException("Failed to get dc");
|
||||
}
|
||||
peer_info.initDC(getHwnd(), getHdc());
|
||||
int format = WindowsPeerInfo.choosePixelFormat(getHdc(), 0, 0, peer_info.getPixelFormat(), null, true, true, false, true);
|
||||
WindowsPeerInfo.setPixelFormat(getHdc(), format);
|
||||
showWindow(getHwnd(), SW_SHOWDEFAULT);
|
||||
if (parent == null) {
|
||||
setForegroundWindow(getHwnd());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue