From 56e8e3de24e7fea36f165b653a8efc8c38145d4c Mon Sep 17 00:00:00 2001 From: rodri Date: Sat, 17 Aug 2024 12:17:46 +0000 Subject: unify drawing routines and add clipped fb drawing support. now changing the viewport offset will correctly show the portion of the framebuffer that's visible, including support for upscaled views. --- graphics.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'graphics.h') diff --git a/graphics.h b/graphics.h index 6362075..1360210 100644 --- a/graphics.h +++ b/graphics.h @@ -287,10 +287,8 @@ struct Framebufctl uint idx; /* front buffer index */ uint upfilter; /* upscaling filter */ - void (*draw)(Framebufctl*, Image*, Point); - void (*upscaledraw)(Framebufctl*, Image*, Point, Point); - void (*memdraw)(Framebufctl*, Memimage*, Point); - void (*upscalememdraw)(Framebufctl*, Memimage*, Point, Point); + void (*draw)(Framebufctl*, Image*, Point, Point); + void (*memdraw)(Framebufctl*, Memimage*, Point, Point); void (*drawnormals)(Framebufctl*, Image*); void (*swap)(Framebufctl*); void (*reset)(Framebufctl*, ulong); -- cgit v1.2.3