love2d / love

LÖVE is an awesome 2D game framework for Lua.
https://love2d.org
Other
4.99k stars 396 forks source link

getting the screen width and height only supplies the default width and height. #1156

Closed slime73 closed 8 years ago

slime73 commented 8 years ago

Original report by Noah Allan Spreadborough (Bitbucket: CosmoSprobr, ).


what I need is for it to supply the real width and height, like, after stretching (if enabled.)

slime73 commented 8 years ago

Original comment by Alex Szpakowski (Bitbucket: slime73, GitHub: slime73).


I'm not sure I understand. love.graphics.getWidth() and love.graphics.getHeight() get the current (real) width and height in pixels of the drawable area inside the window.

slime73 commented 8 years ago

Original comment by Noah Allan Spreadborough (Bitbucket: CosmoSprobr, ).


my mistake, the update table item of my window layer was toggled off, i just had to hold ` (which triggers my devfeed layer) to figure it out