From 332d5a859f3c373d1f3e8e4295335b5f447cd8c0 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Mon, 15 Apr 2024 18:37:00 +1000 Subject: [PATCH] Again --- src/Window_Xbox360.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Window_Xbox360.c b/src/Window_Xbox360.c index 1951833..e034499 100644 --- a/src/Window_Xbox360.c +++ b/src/Window_Xbox360.c @@ -131,11 +131,11 @@ void Window_DrawFramebuffer(Rect2D r, struct Bitmap* bmp) { #define FB_INDEX(x, y) (((y >> 5)*32*width + ((x >> 5)<<10) + (x&3) + ((y&1)<<2) + (((x&31)>>2)<<3) + (((y&31)>>1)<<6)) ^ ((y&8)<<2)) - for (int y = r.y; y < r.y + r.height; y++) + for (int y = r.y; y < r.y + r.Height; y++) { cc_uint32* src = bmp->scan0 + y * bmp->width; - for (int x = r.x; x < r.x + r.width; x++) { + for (int x = r.x; x < r.x + r.Width; x++) { // TODO: Can the uint be copied directly ? int R = BitmapCol_R(src[x]); int G = BitmapCol_G(src[x]);