Merge commit 'e426319' into orca (integrate fix to mg_image_size(), which doesn't need a current canvas anymore)

This commit is contained in:
Martin Fouilleul 2023-05-10 11:20:30 +02:00
commit 9b29e681fe
1 changed files with 3 additions and 7 deletions

View File

@ -352,15 +352,11 @@ void mg_surface_render_commands(mg_surface surface,
vec2 mg_image_size(mg_image image)
{
vec2 res = {0};
mg_canvas_data* canvas = __mgCurrentCanvas;
if(canvas)
{
mg_image_data* imageData = mg_image_data_from_handle(image);
if(imageData)
{
res = imageData->size;
}
}
return(res);
}