You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Merge branch 'develop' into hardware-support
This commit is contained in:
@@ -1443,7 +1443,7 @@ void Timeline::ClearAllCache() {
|
||||
// Set Max Image Size (used for performance optimization). Convenience function for setting
|
||||
// Settings::Instance()->MAX_WIDTH and Settings::Instance()->MAX_HEIGHT.
|
||||
void Timeline::SetMaxSize(int width, int height) {
|
||||
// Init max image size
|
||||
Settings::Instance()->MAX_WIDTH = width;
|
||||
Settings::Instance()->MAX_HEIGHT = height;
|
||||
// Init max image size (choose the smallest one)
|
||||
Settings::Instance()->MAX_WIDTH = min(width, info.width);
|
||||
Settings::Instance()->MAX_HEIGHT = min(height, info.height);
|
||||
}
|
||||
Reference in New Issue
Block a user