Commit c8dae828 authored by Stephanie Gawroriski's avatar 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
......@@ -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.note("Line (%d, %d) -> (%d, %d)", __x1, __y1,
Debugging.debugNote("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);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment