diff libmlk-core/mlk/core/image.c @ 485:3ff1fe64d0cd

core: window -> mlk_window
author David Demelier <markand@malikania.fr>
date Tue, 28 Feb 2023 08:40:35 +0100
parents bc5483849614
children d6757c30658e
line wrap: on
line diff
--- a/libmlk-core/mlk/core/image.c	Mon Feb 27 19:47:09 2023 +0100
+++ b/libmlk-core/mlk/core/image.c	Tue Feb 28 08:40:35 2023 +0100
@@ -44,7 +44,7 @@
 	assert(tex);
 	assert(path);
 
-	if (!(tex->handle = IMG_LoadTexture(RENDERER(), path)))
+	if (!(tex->handle = IMG_LoadTexture(MLK__RENDERER(), path)))
 		return MLK_ERR_SDL;
 
 	dimensions(tex);
@@ -59,7 +59,7 @@
 
 	SDL_RWops *ops = SDL_RWFromConstMem(buffer, size);
 
-	if (!ops || !(tex->handle = IMG_LoadTexture_RW(RENDERER(), ops, 1)))
+	if (!ops || !(tex->handle = IMG_LoadTexture_RW(MLK__RENDERER(), ops, 1)))
 		return MLK_ERR_SDL;
 
 	dimensions(tex);