We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › setResizable scaling error
Page Index Toggle Pages: 1
setResizable scaling error (Read 218 times)
setResizable scaling error
Feb 21st, 2009, 2:00pm
 
Hello,

When I resize my window the contents get rescaled and they shift around - in a strange inverse-proportional manner.

I am using processing 1.01 now on Mac OSX10.5.5.
In previous versions (135 and earlier), I do not remember encountering a similar problem.

Here is some code that produces the problem:

Any ideas?
Thanks very much!

----

import processing.opengl.*;

void setup(){
  size(1200,800,OPENGL);
   frame.setResizable(true);
}

void draw(){
 background(0);
 rect(20,20,600,600);
}  

Re: setResizable scaling error
Reply #1 - Feb 23rd, 2009, 6:25pm
 
anybody have any ideas how to resolve this?

is this an OPENGL bug, or a processing bug?

many thanks!
Page Index Toggle Pages: 1