mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
add workaround for setTitle() resetting cursor() (fixes #3472)
This commit is contained in:
@@ -552,6 +552,12 @@ public class PSurfaceAWT extends PSurfaceNone {
|
||||
@Override
|
||||
public void setTitle(String title) {
|
||||
frame.setTitle(title);
|
||||
// Workaround for apparent Java bug?
|
||||
// https://github.com/processing/processing/issues/3472
|
||||
if (cursorVisible) {
|
||||
hideCursor();
|
||||
showCursor();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -975,11 +975,12 @@ public class PSurfaceJOGL implements PSurface {
|
||||
return def;
|
||||
}
|
||||
|
||||
|
||||
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
|
||||
|
||||
|
||||
public void setCursor(int kind) {
|
||||
System.err.println("Cursor types not supported in OpenGL, provide your cursor image");
|
||||
PGraphics.showWarning("Cursor types not yet supported in OpenGL, provide your cursor image");
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -4,6 +4,8 @@ X prevents "fullScreen() cannot be used here" message on startup
|
||||
X https://github.com/processing/processing/issues/3545
|
||||
X throw an error when using methods that require sketchPath outside setup()
|
||||
X https://github.com/processing/processing/issues/3433
|
||||
X cursor(CROSS) breaks when using surface.setTitle()
|
||||
X https://github.com/processing/processing/issues/3472
|
||||
|
||||
fixed earlier
|
||||
X blend() and copy() are not pixel accurate for copy/scale
|
||||
@@ -80,6 +82,8 @@ opengl
|
||||
_ hard crash at 1920x1080, mirrored, Casey's GT 650M 1GB
|
||||
_ window loses focus after maximizing
|
||||
_ https://github.com/processing/processing/issues/3339
|
||||
_ Implement standard cursor types in OpenGL
|
||||
_ https://github.com/processing/processing/issues/3554
|
||||
|
||||
|
||||
opengl questions
|
||||
|
||||
@@ -47,6 +47,8 @@ _ probably have to add the script/Processing.app location to user's path
|
||||
gui
|
||||
_ fix red in sidebar, the squiggly line beneath code
|
||||
_ show hover text with 'debug'
|
||||
_ show number of updates available in the footer
|
||||
_ https://github.com/processing/processing/issues/3518
|
||||
_ don't show breakpoints when debugger is off
|
||||
_ https://github.com/processing/processing/issues/3093
|
||||
_ no setting breakpoints when debugger is off
|
||||
|
||||
Reference in New Issue
Block a user