Fixed 'scale to fit' functionality of WidgetImage
This commit is contained in:
@@ -87,6 +87,10 @@ SDL_Rect surface_align(const SDL_Surface* base, const SDL_Surface* applied,
|
||||
return align;
|
||||
}
|
||||
|
||||
// These are set in order to handle scaled blits
|
||||
align.w = applied->w;
|
||||
align.h = applied->h;
|
||||
|
||||
if (nullptr == hint_external)
|
||||
{
|
||||
hint = SDL_Rect{.x = 0, .y = 0, .w = applied->w, .h = applied->h};
|
||||
|
||||
Reference in New Issue
Block a user