From b49a617d580d1e7133fc678311891ca4cb60b8e6 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sun, 11 Oct 2020 09:59:47 +1100 Subject: [PATCH] disable redraw debug messages for android --- src/Window.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Window.c b/src/Window.c index f85ea2a79..0b668ad60 100644 --- a/src/Window.c +++ b/src/Window.c @@ -3856,24 +3856,22 @@ void Window_DrawFramebuffer(Rect2D r) { ARect b; int y, res, size; - Platform_LogConst("DRAW_RAW"); /* window not created yet */ if (!win_handle) return; - b.left = r.X; b.right = r.X + r.Width; b.top = r.Y; b.bottom = r.Y + r.Height; - Platform_Log4("DIRTY: %i,%i - %i,%i", &b.left, &b.top, &b.right, &b.bottom); + /* Platform_Log4("DIRTY: %i,%i - %i,%i", &b.left, &b.top, &b.right, &b.bottom); */ res = ANativeWindow_lock(win_handle, &buffer, &b); if (res) Logger_Abort2(res, "Locking window pixels"); - Platform_Log4("ADJUS: %i,%i - %i,%i", &b.left, &b.top, &b.right, &b.bottom); + /* Platform_Log4("ADJUS: %i,%i - %i,%i", &b.left, &b.top, &b.right, &b.bottom); */ int width = ANativeWindow_getWidth(win_handle); int height = ANativeWindow_getHeight(win_handle); int format = ANativeWindow_getFormat(win_handle); - Platform_Log3("WIN SIZE: %i,%i %i", &width, &height, &format); - Platform_Log4("BUF SIZE: %i,%i %i/%i", &buffer.width, &buffer.height, &buffer.format, &buffer.stride); + /* Platform_Log3("WIN SIZE: %i,%i %i", &width, &height, &format); */ + /* Platform_Log4("BUF SIZE: %i,%i %i/%i", &buffer.width, &buffer.height, &buffer.format, &buffer.stride); */ src = (cc_uint32*)fb_bmp.scan0 + b.left; dst = (cc_uint32*)buffer.bits + b.left;