Skip to content

Commit 986d40a

Browse files
authored
Merge pull request #20 from webosbrew/dilevt-disable-limitation
libdile_vt: don't overwrite resolution when reaching scaledown limits
2 parents a49e73c + 7340410 commit 986d40a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/backends/libdile_vt.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,7 @@ int capture_start()
108108
DILE_VT_RECT region = {0, 0, config.resolution_width, config.resolution_height};
109109

110110
if (region.width < limitation.scaleDownLimitWidth || region.height < limitation.scaleDownLimitHeight) {
111-
fprintf(stderr, "[DILE_VT] scaledown limit, overriding to %dx%d\n", limitation.scaleDownLimitWidth, limitation.scaleDownLimitHeight);
112-
region.width = limitation.scaleDownLimitWidth;
113-
region.height = limitation.scaleDownLimitHeight;
111+
fprintf(stderr, "[DILE_VT] WARNING: scaledown is limited to %dx%d while %dx%d has been chosen - there's a chance this will crash!\n", limitation.scaleDownLimitWidth, limitation.scaleDownLimitHeight, region.width, region.height);
114112
}
115113

116114
if (DILE_VT_SetVideoFrameOutputDeviceOutputRegion(vth, DILE_VT_DISPLAY_OUTPUT, &region) != 0) {

0 commit comments

Comments
 (0)