Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
SquirrelJME
Commits
c8dae828
Commit
c8dae828
authored
Feb 10, 2022
by
Stephanie Gawroriski
Browse files
Just print a note and do not print a stack trace for graphical errors.
parent
997aef39
Pipeline
#86894
passed with stages
in 6 minutes and 10 seconds
Changes
1
Pipelines
5
Hide whitespace changes
Inline
Side-by-side
modules/midp-lcdui/src/main/java/cc/squirreljme/runtime/lcdui/gfx/AdvancedGraphics.java
View file @
c8dae828
...
...
@@ -9,6 +9,7 @@
package
cc.squirreljme.runtime.lcdui.gfx
;
import
cc.squirreljme.runtime.cldc.debug.Debugging
;
import
cc.squirreljme.runtime.lcdui.font.SQFFont
;
import
javax.microedition.lcdui.Font
;
import
javax.microedition.lcdui.Graphics
;
...
...
@@ -528,9 +529,8 @@ public class AdvancedGraphics
// Exception happened when drawing a line
catch
(
IndexOutOfBoundsException
e
)
{
todo
.
DEBUG
.
n
ote
(
"Line (%d, %d) -> (%d, %d)"
,
__x1
,
__y1
,
Debugging
.
debugN
ote
(
"Line (%d, %d) -> (%d, %d)"
,
__x1
,
__y1
,
__x2
,
__y2
);
e
.
printStackTrace
();
}
}
...
...
@@ -599,7 +599,7 @@ public class AdvancedGraphics
}
catch
(
IndexOutOfBoundsException
e
)
{
new
RuntimeException
(
String
.
format
(
Debugging
.
debugNote
(
"drawRGBTile(buffer[%d]=%s, bufferlen=%d, w=%d, h=%d, "
+
"pitch=%d, offset=%d -> "
+
"data[%d]=%s, w=%d, h=%d, off=%d, "
+
...
...
@@ -608,8 +608,7 @@ public class AdvancedGraphics
this
.
buffer
.
length
,
this
.
buffer
,
this
.
bufferlen
,
this
.
width
,
this
.
height
,
this
.
pitch
,
this
.
offset
,
__data
.
length
,
__data
,
__w
,
__h
,
__off
,
__scanlen
,
__x
,
__y
,
tw
,
th
,
subX
,
subY
),
e
)
.
printStackTrace
();
tw
,
th
,
subX
,
subY
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment