From d556df556d9ec40b64b70c696d275dfc73a6c06e Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Fri, 4 Jan 2019 23:24:53 +0100 Subject: [PATCH] sdl: Get_Screen_pixel_ptr() improve debug log... --- src/sdlscreen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdlscreen.c b/src/sdlscreen.c index 054b9a59..32722e74 100644 --- a/src/sdlscreen.c +++ b/src/sdlscreen.c @@ -99,7 +99,7 @@ byte* Get_Screen_pixel_ptr(int x, int y) { if (y < 0 || x < 0 || y >= Screen_SDL->h || x >= Screen_SDL->w) { - Warning("Get_Screen_pixel_ptr() coordinates out of bound"); + GFX2_Log(GFX2_WARNING, "Get_Screen_pixel_ptr(%d, %d): coordinates out of bound\n", x, y); return NULL; } return (byte *)Screen_SDL->pixels + x + y*(Screen_SDL->pitch);