]> git.sesse.net Git - pr0n/commit
Update the fullscreen mode to handle non-4:3 images and non-4:3 screen
authorSteinar H. Gunderson <sesse@debian.org>
Tue, 21 Aug 2007 04:19:21 +0000 (06:19 +0200)
committerSteinar H. Gunderson <sesse@debian.org>
Tue, 21 Aug 2007 04:19:21 +0000 (06:19 +0200)
commita58f1ab4dd5b224b12ed78096b6867f47c316231
treead3f48d300c2a0fde25be86ad5fb0f19228a5e86
parent29546c334313d9ade7fd708b04f86c567696d471
Update the fullscreen mode to handle non-4:3 images and non-4:3 screen
areas a lot better. This should overall select the largest image available
(from the list of fixed maximum sizes) that will fit in the client area,
without rounding down to nearest 4:3 size twice. (IOW, it can show a
640x320 image in a 640x320 client area, even though 640x320 isn't large
enough for a generic 640x480 image.)
files/pr0n-fullscreen.js
perl/Sesse/pr0n/Index.pm