From 58f0b8b76c4a274e9f14dd59c22edb73efbf8ac9 Mon Sep 17 00:00:00 2001 From: ColleagueRiley Date: Thu, 3 Oct 2024 20:23:04 -0400 Subject: [PATCH] fix texture offset --- examples/textures.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/textures.c b/examples/textures.c index 93e875f..68c1d84 100644 --- a/examples/textures.c +++ b/examples/textures.c @@ -53,7 +53,7 @@ int main(void) { RSoft_setMatrix(rotateAroundCenter(RSOFT_VECTOR2D(500, 150), angle)); RSoft_drawTriangleF(win->buffer, (RSoft_vector[3]){v1, v2, v3}, (u8[4]){255, 225, 225, 255}); - RSoft_setTexture(buffer, RSOFT_RECT(0, 100, 200, 200), RSOFT_AREA(w, h)); + RSoft_setTexture(buffer, RSOFT_RECT(0, 0, 200, 200), RSOFT_AREA(w, h)); RSoft_setMatrix(rotateAroundCenter(RSOFT_VECTOR2D(250, 250), angle)); RSoft_drawRectF(win->buffer, RSOFT_RECTF(150, 150, 200, 200), (u8[4]){255, 225, 225, 255});