New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fullscreen window on second monitor without using present mode #3271

Closed
jddamas opened this Issue May 11, 2015 · 10 comments

Comments

Projects
None yet
3 participants
@jddamas

jddamas commented May 11, 2015

On 3.0a5, latest Yosemite, if I draw a window on second monitor with the dimensions of the monitor size(displayWidth, displayHeight, P3D); the frame of the window is showing and a line(0,0,width,height) won't go from edge to edge. See picture below:

screen shot 2015-05-12 at 00 04 34 2

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry May 12, 2015

Member

Thanks for filing.

Member

benfry commented May 12, 2015

Thanks for filing.

@jddamas

This comment has been minimized.

Show comment
Hide comment
@jddamas

jddamas May 12, 2015

No problem!

jddamas commented May 12, 2015

No problem!

@codeanticode codeanticode self-assigned this May 17, 2015

@codeanticode codeanticode added the opengl label May 17, 2015

@codeanticode

This comment has been minimized.

Show comment
Hide comment
@codeanticode

codeanticode May 18, 2015

Member

@jddamas do you still see this issue using the latest alpha (a8)?

Member

codeanticode commented May 18, 2015

@jddamas do you still see this issue using the latest alpha (a8)?

@jddamas

This comment has been minimized.

Show comment
Hide comment
@jddamas

jddamas May 18, 2015

Actually a8 isn't drawing any window. I have this simple sketch:

void setup(){
size(displayWidth, displayHeight, P3D);
}

void draw(){
background(0);
stroke(255);
line(0, 0, width, height);
}

No window appears if I'm running sketches on display 2, nor if I change to display 1 on preferences.

If I change to the default renderer, I get the following error message:

java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1016)
at sun.java2d.opengl.CGLGraphicsConfig.createCompatibleImage(CGLGraphicsConfig.java:204)
at processing.core.PGraphicsJava2D.checkImage(PGraphicsJava2D.java:305)
at processing.core.PGraphicsJava2D.beginDraw(PGraphicsJava2D.java:315)
at processing.core.PApplet.handleDraw(PApplet.java:1931)
at processing.core.PSurfaceAWT$13.render(PSurfaceAWT.java:1365)
at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:294)

I'm running a8 on the latest Yosemite update.
Cheers.

jddamas commented May 18, 2015

Actually a8 isn't drawing any window. I have this simple sketch:

void setup(){
size(displayWidth, displayHeight, P3D);
}

void draw(){
background(0);
stroke(255);
line(0, 0, width, height);
}

No window appears if I'm running sketches on display 2, nor if I change to display 1 on preferences.

If I change to the default renderer, I get the following error message:

java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1016)
at sun.java2d.opengl.CGLGraphicsConfig.createCompatibleImage(CGLGraphicsConfig.java:204)
at processing.core.PGraphicsJava2D.checkImage(PGraphicsJava2D.java:305)
at processing.core.PGraphicsJava2D.beginDraw(PGraphicsJava2D.java:315)
at processing.core.PApplet.handleDraw(PApplet.java:1931)
at processing.core.PSurfaceAWT$13.render(PSurfaceAWT.java:1365)
at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:294)

I'm running a8 on the latest Yosemite update.
Cheers.

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry May 18, 2015

Member

It's possible that displayWidth and displayHeight aren't being set properly in a8 because of other changes.

What happens if you replace those with the actual values (i.e. size(1920, 1080, P3D))

Member

benfry commented May 18, 2015

It's possible that displayWidth and displayHeight aren't being set properly in a8 because of other changes.

What happens if you replace those with the actual values (i.e. size(1920, 1080, P3D))

@jddamas

This comment has been minimized.

Show comment
Hide comment
@jddamas

jddamas May 18, 2015

Yes. That's the issue. I've replaced by size(1920, 1080, P3D) and it's working fine. Fullscreen, second monitor, no window frame.

jddamas commented May 18, 2015

Yes. That's the issue. I've replaced by size(1920, 1080, P3D) and it's working fine. Fullscreen, second monitor, no window frame.

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry May 18, 2015

Member

So just to be clear, as long as displayWidth and displayHeight are fixed, the original issue here will be fixed?

Member

benfry commented May 18, 2015

So just to be clear, as long as displayWidth and displayHeight are fixed, the original issue here will be fixed?

@jddamas

This comment has been minimized.

Show comment
Hide comment
@jddamas

jddamas May 18, 2015

Yes. When I replace displayWidth and displayHeight by the monitor's resolution values, there are no bugs.

jddamas commented May 18, 2015

Yes. When I replace displayWidth and displayHeight by the monitor's resolution values, there are no bugs.

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry May 18, 2015

Member

Ok, that's now filed here: #3295

Member

benfry commented May 18, 2015

Ok, that's now filed here: #3295

@benfry benfry closed this May 18, 2015

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Jun 8, 2015

Member

This issue was fixed for 3.0a9, or if not, the fix will be in 3.0a10.

Member

benfry commented Jun 8, 2015

This issue was fixed for 3.0a9, or if not, the fix will be in 3.0a10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment