From: Steinar H. Gunderson Date: Mon, 27 Aug 2007 07:46:34 +0000 (+0200) Subject: Fix a bug where the fullscreen code would ask for "1600x1087" etc. due to X-Git-Url: https://git.sesse.net/?p=pr0n;a=commitdiff_plain;h=9eb21666befb2b294a48f0af6c823f427abce3ad Fix a bug where the fullscreen code would ask for "1600x1087" etc. due to the cropping code modifying fixed_sizes when it shouldn't. --- diff --git a/files/pr0n-fullscreen.js b/files/pr0n-fullscreen.js index db9d434..1ec07e6 100644 --- a/files/pr0n-fullscreen.js +++ b/files/pr0n-fullscreen.js @@ -99,7 +99,8 @@ function pick_image_size(screen_size, image_size) } if (screen_size[0] >= width && screen_size[1] >= height) { - return fixed_sizes[i]; + // be sure _not_ to return a reference + return [ fixed_sizes[i][0], fixed_sizes[i][1] ]; } } return [ 80, 64 ];