fix disabled presentation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user