This commit is contained in:
2026-09-24 15:30:45 -03:00
commit a5af824c91
306 changed files with 58603 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
#include <ui/Components.h>
bool image_update(SDL_Renderer* renderer, struct _Component* component)
{
Image* image = (Image*)component;
SDL_Rect src = { image->x, image->y, image->w, image->h };
SDL_Rect dst = { image->d_x * INTERFACE_SCALE, image->d_y * INTERFACE_SCALE, image->d_w * INTERFACE_SCALE, image->d_h * INTERFACE_SCALE };
SDL_RenderCopy(renderer, g_textureSheet, &src, &dst);
return true;
}