Fixed 'scale to fit' functionality of WidgetImage
This commit is contained in:
@@ -42,6 +42,11 @@ public:
|
||||
virtual void draw() override;
|
||||
|
||||
static std::unique_ptr<Widget> builder(const nlohmann::json& j);
|
||||
|
||||
protected:
|
||||
// Create a new surface of the image_surface that is scaled via RESIZE_FIT method
|
||||
// NOTE: The user MUST free the surface when done with it
|
||||
SDL_Surface* image_scale_fit();
|
||||
};
|
||||
|
||||
#endif // WIDGET_IMAGE_H_
|
||||
|
||||
Reference in New Issue
Block a user