LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: Simon Felix on January 22, 2008, 12:07:13

Title: Win: Moving window -> Display.update() is locked
Post by: Simon Felix on January 22, 2008, 12:07:13
Hi there,

when using windowed mode, my code can no longer redraw the content of the window when dragging it. This is because Display.update() blocks while the user is moving the window. Is there a way around this?


Regards,
Simon
Title: Re: Win: Moving window -> Display.update() is locked
Post by: Schnitter on February 01, 2008, 19:26:44
I think it's quite "normal" - because its like you code with DirectX.
Afaik it's "normal" for windows - but linux(I dont know anything about mac :/) can handle it better.
Title: Re: Win: Moving window -> Display.update() is locked
Post by: Simon Felix on September 08, 2009, 16:57:02
I recently found this very useful post:
http://www.tech-archive.net/Archive/Development/microsoft.public.win32.programmer.ui/2006-02/msg00194.html

Isn't that a viable solution without resorting to threads?


(Yay, zombie-thread is alive...)


BTW: Here are up to date links from the MSDN
http://msdn.microsoft.com/en-us/library/ms644959(VS.85).aspx About Hooks
http://msdn.microsoft.com/en-us/library/ms644992(VS.85).aspx SysMsgProc Function
http://msdn.microsoft.com/en-us/library/ms644987(VS.85).aspx MessageProc Function
Title: Re: Win: Moving window -> Display.update() is locked
Post by: Matzon on September 08, 2009, 17:10:46
I once implemented this on a local build and it had some issues. I seem to recall it being caused by the need for a secondary - non display.update method to be called during the modal loop processing that actually does the rendering. There was no fix for this easily...