You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-18 14:21:41 +00:00
Fix compile warnings for Windows from Linux
At least the ones I got when I compiled it using Mingw64 POSIX on Xubuntu 18.04. Plus use the Size2 of get_window_size() directly, rather than reconstructing it.
This commit is contained in:
@@ -92,9 +92,9 @@ Error ContextGL_Win::initialize() {
|
||||
PFD_SUPPORT_OPENGL | // Format Must Support OpenGL
|
||||
PFD_DOUBLEBUFFER,
|
||||
(BYTE)PFD_TYPE_RGBA,
|
||||
OS::get_singleton()->is_layered_allowed() ? (BYTE)32 : (BYTE)24,
|
||||
(BYTE)(OS::get_singleton()->is_layered_allowed() ? 32 : 24),
|
||||
(BYTE)0, (BYTE)0, (BYTE)0, (BYTE)0, (BYTE)0, (BYTE)0, // Color Bits Ignored
|
||||
OS::get_singleton()->is_layered_allowed() ? (BYTE)8 : (BYTE)0, // Alpha Buffer
|
||||
(BYTE)(OS::get_singleton()->is_layered_allowed() ? 8 : 0), // Alpha Buffer
|
||||
(BYTE)0, // Shift Bit Ignored
|
||||
(BYTE)0, // No Accumulation Buffer
|
||||
(BYTE)0, (BYTE)0, (BYTE)0, (BYTE)0, // Accumulation Bits Ignored
|
||||
|
||||
Reference in New Issue
Block a user