mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-12 19:20:29 +00:00
Terminal cursor bounds checking
This commit is contained in:
parent
4e3def39e0
commit
4b8493baab
@ -410,7 +410,7 @@ public class WidgetTerminal extends Widget
|
|||||||
y += FixedWidthFontRenderer.FONT_HEIGHT;
|
y += FixedWidthFontRenderer.FONT_HEIGHT;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( tblink )
|
if( tblink && tx >= 0 && ty >= 0 && tx < tw && ty < th )
|
||||||
{
|
{
|
||||||
TextBuffer cursor = new TextBuffer( '_', 1 );
|
TextBuffer cursor = new TextBuffer( '_', 1 );
|
||||||
TextBuffer cursorColour = new TextBuffer( "0123456789abcdef".charAt( terminal.getTextColour() ), 1 );
|
TextBuffer cursorColour = new TextBuffer( "0123456789abcdef".charAt( terminal.getTextColour() ), 1 );
|
||||||
|
Loading…
Reference in New Issue
Block a user