You could just ensure the aspect ratio of the viewport was always 4:3, and letterbox it if the window wasn't.
-Casey On Thu, Mar 19, 2009 at 8:35 PM, tazg <[email protected]> wrote: > > I have a resizable window that I want to keep its aspect ratio, so I'm > doing this: > > def on_resize(width, height): > window.width = height * 4/3 > > This works but it seems to still draw the window with the original > size first, so you can see the border flickering between 2 positions > which looks terrible. Any way to fix that? > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
