Author: michael
Date: Mon Jan 18 07:07:41 2010
New Revision: 8364

URL: http://svn.slimdevices.com/jive?rev=8364&view=rev
Log:
Bug: n/a
Description: respect ImageViewer's fullsize pref

Modified:
    
7.5/trunk/squeezeplay/src/squeezeplay/share/applets/ImageViewer/ImageSourceServer.lua

Modified: 
7.5/trunk/squeezeplay/src/squeezeplay/share/applets/ImageViewer/ImageSourceServer.lua
URL: 
http://svn.slimdevices.com/jive/7.5/trunk/squeezeplay/src/squeezeplay/share/applets/ImageViewer/ImageSourceServer.lua?rev=8364&r1=8363&r2=8364&view=diff
==============================================================================
--- 
7.5/trunk/squeezeplay/src/squeezeplay/share/applets/ImageViewer/ImageSourceServer.lua
 (original)
+++ 
7.5/trunk/squeezeplay/src/squeezeplay/share/applets/ImageViewer/ImageSourceServer.lua
 Mon Jan 18 07:07:41 2010
@@ -129,7 +129,7 @@
                return
        end
 
-       --remove from history, similar to brwoser back history, except forward 
always move to next fetched image.
+       --remove from history, similar to browser back history, except forward 
always move to next fetched image.
        table.remove(self.imageDataHistory, #self.imageDataHistory) -- remove 
current
        local imageData = table.remove(self.imageDataHistory, 
#self.imageDataHistory) -- get previous
 
@@ -169,7 +169,13 @@
                local server = SlimServer:getCurrentServer()
                
                -- if an image url has the {resizeParams} placeholder, add 
Squeezebox server resizing parameters
-               urlString = string.gsub(urlString, "{resizeParams}", "_" .. 
screenWidth .. "x" .. screenHeight)
+               local resizeParams = "_" .. screenWidth .. "x" .. screenHeight
+
+               if self.applet:getSettings()["fullscreen"] then
+                       resizeParams = resizeParams .. "_c"
+               end
+               
+               urlString = string.gsub(urlString, "{resizeParams}", 
resizeParams)
                
                if server then
                        local ip, port = server:getIpPort()

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive-checkins

Reply via email to