Page 1 of 1

How can I get the current screen/window depth ?

Posted: Tue Sep 30, 2008 10:39 pm
by TsT
I'm searching about how can I get the current love window size.

I saw
getModes() http://love2d.org/docs/love_graphics_getModes_1.html
and
setMode(...) http://love2d.org/docs/love_graphics_setMode_1.html

But i'm search about something like
getMode()
or getCurrentMode()

to get the width/height of the current window.

Thanks

Re: How can I get the current screen/window depth ?

Posted: Tue Sep 30, 2008 10:52 pm
by surtic
Try using:

Code: Select all

screen_width = love.graphics.getWidth()
screen_height = love.graphics.getHeight()

Re: How can I get the current screen/window depth ?

Posted: Wed Oct 01, 2008 8:45 am
by TsT
Oh thanks a lot !
I was not seen it...
Sorry.