diff options
Diffstat (limited to '')
-rw-r--r-- | minuitwrp/graphics.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/minuitwrp/graphics.c b/minuitwrp/graphics.c index 93123e40a..7160c7e2e 100644 --- a/minuitwrp/graphics.c +++ b/minuitwrp/graphics.c @@ -558,6 +558,20 @@ int gr_textExWH(int x, int y, const char *s, void* pFont, int max_width, int max return x; } +void gr_clip(int x, int y, int w, int h) +{ + GGLContext *gl = gr_context; + gl->scissor(gl, x, y, w, h); + gl->enable(gl, GGL_SCISSOR_TEST); +} + +void gr_noclip() +{ + GGLContext *gl = gr_context; + gl->scissor(gl, 0, 0, gr_fb_width(), gr_fb_height()); + gl->disable(gl, GGL_SCISSOR_TEST); +} + void gr_fill(int x, int y, int w, int h) { GGLContext *gl = gr_context; |