Attached patch enables windowed mode on win32. Since this is a non-trivial change, I'd like a review by another dev.
[Note] Pushed as a48f0f723e08
[Note] Pushed as a48f0f723e08
Attachment: openclonk-daf1795462c3.patch (11k)
seems to me like it does not work for GL, but i cannot test it under linux..... does it work?
There's a FIXME in the patch ;-)
Apparently the window isn't resizable by the player. That's unnecessary. We might want to optimize C4GraphicsResource::LoadCursorGfx so that it doesn't load the cursors every time, but otherwise there's no reason to forbid that feature.
Apparently the window isn't resizable by the player. That's unnecessary. We might want to optimize C4GraphicsResource::LoadCursorGfx so that it doesn't load the cursors every time, but otherwise there's no reason to forbid that feature.
> There's a FIXME in the patch ;-)
Yes, but it's "just" a performance issue.
> Apparently the window isn't resizable by the player. That's unnecessary.
It should be resizable; the window has WS_THICKFRAME and in my tests, resizing works and resizes the render area.
Is this a bug in tortoiseMerge or am I doing it wrong?: After I press OK, nothing happens.
I hereby license the following file(s) under the CC-by license
I hereby license the following file(s) under the CC-by license
Now I tested the patch:
2>..\src\C4FullScreen.cpp(131) : error C2065: 'FALSE': nichtdeklarierter Bezeichner
2>..\src\C4FullScreen.cpp(139) : error C2065: 'TRUE': nichtdeklarierter Bezeichner
replaced TRUE and FALSE with true, false, then compiling worked. But for me (Windows Vista Business SP2, VC++, OpenGL), it looks completely broken (even a bit more broken than in linux). Attached are some screenshots...
(First screenshot: resolution was... 800x600)
Edit:
It looks like I tested it "just in time". One hour after you finally pushed it. Hmpf.
2>..\src\C4FullScreen.cpp(131) : error C2065: 'FALSE': nichtdeklarierter Bezeichner
2>..\src\C4FullScreen.cpp(139) : error C2065: 'TRUE': nichtdeklarierter Bezeichner
replaced TRUE and FALSE with true, false, then compiling worked. But for me (Windows Vista Business SP2, VC++, OpenGL), it looks completely broken (even a bit more broken than in linux). Attached are some screenshots...
(First screenshot: resolution was... 800x600)
Edit:
It looks like I tested it "just in time". One hour after you finally pushed it. Hmpf.
I tested window mode on my System now and i don't get any frame border.
I think its some compatibility issue with windows seven.
System:
Windows Seven Professional 32-bit
Visual Studio 2008 Express SP1
PS: how do i attach images?
I think its some compatibility issue with windows seven.
System:
Windows Seven Professional 32-bit
Visual Studio 2008 Express SP1
PS: how do i attach images?
> I tested window mode on my System now and i don't get any frame border.
> I think its some compatibility issue with windows seven.
No, that's a hack to avoid rendering bugs with OpenGL when changing from fullscreen to windowed mode or vice versa. If you need a window border on Win32, you currently have to use DirectX. This may change in the future.
> PS: how do i attach images?
You can attach pictures after you've posted, you should have an "attach" button below your post then.
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill