I have a project using a variable size window, where the size is determined through a config file.
Basically here's the size stuff in setup:
size(480, 270);
loadPrefs();
surface.setSize(w, h);

As you can see, this is working well. Then I worked with translate() and rotate() and had big performance issues, so I switched to
size(480, 270, P2D);
and that's what I got:

I tried multiple things, including adding surface.setResizable(true); which gave me this:

I could resize the window manually, but that's not convenient, plus I don't want it to be resizable.
I tried using frame.setSize, surface.setSize and setSize but none of them worked.
I'm running Linux Mint 17.1 64-bit, and I'd like to note that at school this worked on Kubuntu 14 32-bit, also my graphic drivers are up-to-date.
Silly side note: when switching from normal mode to P2D, the 'α' in the window title goes wrong.
I have a project using a variable size window, where the size is determined through a config file.
Basically here's the size stuff in setup:
As you can see, this is working well. Then I worked with translate() and rotate() and had big performance issues, so I switched to
size(480, 270, P2D);and that's what I got:
I tried multiple things, including adding
surface.setResizable(true);which gave me this:I could resize the window manually, but that's not convenient, plus I don't want it to be resizable.
I tried using
frame.setSize,surface.setSizeandsetSizebut none of them worked.I'm running Linux Mint 17.1 64-bit, and I'd like to note that at school this worked on Kubuntu 14 32-bit, also my graphic drivers are up-to-date.
Silly side note: when switching from normal mode to P2D, the 'α' in the window title goes wrong.