fix disabled presentation

This commit is contained in:
2025-12-24 14:06:06 -06:00
parent 5c79173fa5
commit 3beb5f7091

View File

@@ -489,9 +489,8 @@ compositor.calculate_presentation_rect = function(source_size, dest_size, mode)
var dw = dest_size.width
var dh = dest_size.height
if (mode == 'disabled' || mode == 'stretch') {
return {x: 0, y: 0, width: dw, height: dh}
}
if (mode == 'disabled') return {x: 0, y: 0, width: number.min(sw,dw), height: number.min(sh,dh)}
if (mode == 'stretch') return {x: 0, y: 0, width: dw, height: dh}
var src_aspect = sw / sh
var dst_aspect = dw / dh