From e827fd28abfacee5784b5a86548ebd668c84a070 Mon Sep 17 00:00:00 2001 From: xo Date: Mon, 13 Apr 2026 01:46:46 +0200 Subject: fix drawing on intel gpus --- src/util/string.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/util/string.h') diff --git a/src/util/string.h b/src/util/string.h index 2725fd2..548007a 100644 --- a/src/util/string.h +++ b/src/util/string.h @@ -277,6 +277,13 @@ struct __str : public LIST { return ret; } + __str substr( I32 start ) { + if( start < 0 ) + start = this->size + start; + + return __str( this->size - start, this->data + start ); + } + // can take negative input as offset from end __str substr( I32 start, I32 end ) { if( start < 0 ) -- cgit v1.2.3