Changeset 3673


Ignore:
Timestamp:
05/30/15 08:26:46 (5 years ago)
Author:
Bluestone
Message:

allow loadscreen to stretch (a little)
fixes #685

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BAR/luaintro/Addons/bg_texture.lua

    r3410 r3673  
    3838        local ratioComp = screenAspectRatio / aspectRatio 
    3939 
    40         if (ratioComp > 1) then 
    41                 xDiv = (1 - (1 / ratioComp)) * 0.5; 
    42         elseif (math.abs(ratioComp - 1) < 0) then 
    43         else 
    44                 yDiv = (1 - ratioComp) * 0.5; 
    45         end 
     40    if math.abs(ratioComp-1)>0.15 then  
     41        if (ratioComp > 1) then 
     42            xDiv = (1 - (1 / ratioComp)) * 0.5; 
     43        else 
     44            yDiv = (1 - ratioComp) * 0.5; 
     45        end 
     46    end 
    4647 
    4748        -- background 
Note: See TracChangeset for help on using the changeset viewer.