Slick Forums

Discuss the Slick 2D Library
It is currently Fri May 24, 2013 12:48 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Tue Oct 18, 2011 8:27 am 
Offline

Joined: Fri Sep 30, 2011 8:39 am
Posts: 17
Hello,

I have set another GLCanvas as parent of the lwjgl.Display which is resizeable. If this GLCanvas stays at it´s initial size the widget will be rendered fine. When I resize the Displays´ parent the widget changes it´s size, too. All its childs will be rendered distorted, even the font. Is there any chance to avoid the widgets change of size?

Thank you very much.
Tobias


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 18, 2011 10:10 am 
Offline

Joined: Fri Sep 30, 2011 8:39 am
Posts: 17
Alright, we have already found the answer:
The LWJGLRenderer needs to call method syncViewportSize() before rendering...

:D


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 18, 2011 5:06 pm 
Offline
Slick Zombie

Joined: Fri Jan 29, 2010 7:02 pm
Posts: 1173
Only call that method when the size has changed as it calls glGet which might cause a slow down.

_________________
TWL - The Themable Widget Library


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 19, 2011 5:27 am 
Offline

Joined: Fri Sep 30, 2011 8:39 am
Posts: 17
Okay, I will be mindful of your advice, thank you!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group