Skip to content

surface.setSize() not always working when using P2D/P3D on Linux #4129

@Zeroji

Description

@Zeroji

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);

withoutP2D
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:
withP2D
I tried multiple things, including adding surface.setResizable(true); which gave me this:
withP2Dresizable
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.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions