(Gsk)Canvas: add debug prints, and a hack

This commit is contained in:
Mis012
2025-03-26 21:17:13 +01:00
parent 23078bfb06
commit 0a0e476883
2 changed files with 44 additions and 11 deletions

View File

@@ -71,6 +71,10 @@ public class GskCanvas extends Canvas {
@Override
public void drawText(String text, float x, float y, Paint paint) {
if(text == null) {
new Exception("drawText: text is null; stack trace:").printStackTrace();
return;
}
native_drawText(snapshot, text, x, y, paint != null ? paint.paint : default_paint.paint);
}