Code: Select all
...
if n=="screensize_left" then
if self.mode>1 then
self.mode=self.mode-1
if self.mode==1 then love.graphics.setMode(1024,768,self.fullscreen_on,false,0)
elseif self.mode==2 then love.graphics.setMode(1280,1024,self.fullscreen_on,false,0)
elseif self.mode==3 then love.graphics.setMode(1440,900,self.fullscreen_on,false,0)
end
end
end
if n=="screensize_right" then
if self.mode<4 then
self.mode=self.mode+1
if self.mode==4 then love.graphics.setMode(1600,1200,self.fullscreen_on,false,0)
elseif self.mode==2 then love.graphics.setMode(1280,1024,self.fullscreen_on,false,0)
elseif self.mode==3 then love.graphics.setMode(1440,900,self.fullscreen_on,false,0)
end
end
end
"Could not set video mode: No video mode large enough for 1280x1024" - on the left button
"Could not set video mode: No video mode large enough for 1600x1200" - on the right button
May be somebody already faced this behavior?