fredsa / playn

Cross platform game library for N≥4 platforms
0 stars 1 forks source link

LWJGL SetResizable and graphics.SetSize() Conflict #213

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set a Display Resizable : Display.SetResizable(true)
2. Change the size of the canvas in playN : PlayN.graphics().SetSize(100,100)
3.try to drag your mouse on the border of your window

What is the expected output? What do you see instead?
The game windows is no more resizable.

What version of the product are you using? On what operating system?
PlayN 1.4

Please provide any additional information below.

The setResizable fonction have a test : if(this.resizable != resizable)
which don't work in the createwindow call (class WindowsDisplay) because:
the hwnd is just created but you always have the isResizable in the last state 
( true in my case )
So, the code try to setResizable after but for him their is no change.
And you don't call the setWindowLongPtr(hwnd, GWL_STYLE, style |= 
(WS_THICKFRAME | WS_MAXIMIZEBOX));

I think we need something like : this.resizable = false; in the top of the 
createwindow fontion. 

I'm not sure to be clear :p

Thanks.

Original issue reported on code.google.com by steph...@ooki.com on 27 Aug 2012 at 11:55

GoogleCodeExporter commented 9 years ago
This is lwjgl issue on windows platform and as i know - only on AMD GPU. 
Version 2.9.2 still have this bug. Unfortunately - i have AMD GPU )

Original comment by semt...@gmail.com on 5 Mar 2014 at 2:09

GoogleCodeExporter commented 9 years ago
PlayN is not designed to support you going in and fiddling with LWJGL under the 
hood. I have no problem supporting resizable windows, but that will probably 
require a fair bit of work on the GL backend, which I don't have time to do. If 
you want to do that work and submit a pull request, I'll review it, but 
otherwise you're on your own.

Original comment by m...@samskivert.com on 5 Mar 2014 at 5:50