Alex Szpakowski
f2797958db
Don’t minimize on focus loss in fullscreen-desktop mode (mimics post-SDL 2.0.1 behaviour)
2013-11-11 18:07:05 -04:00
Alex Szpakowski
101c6ae90a
Fixed love.window.setFullscreen to update the graphics viewport immediately instead of waiting for the next event polling
2013-10-30 14:26:34 -03:00
Alex Szpakowski
d9da19d665
Error for misspelled / invalid window attributes in love.window.setMode (resolves issue #736 )
2013-10-20 13:17:57 -03:00
Alex Szpakowski
b5c231e5bb
The window minwidth and minheight can't be less than 1
2013-09-19 23:33:13 -03:00
Alex Szpakowski
0ce0db9e1b
The minwidth and minheight window flags have default values of 0 instead of 100 (resolves issue #735 ).
...
The real minimum window width and height are still system-dependent.
2013-09-19 19:05:40 -03:00
Alex Szpakowski
ffe0485173
Removed love.window.checkMode (resolves issue #653 , invalidates issue #592 ).
...
Also fixed love.window.setMode to fail instead of bug out when trying to set a fullscreen mode which is too large for the monitor.
2013-09-19 18:13:52 -03:00
Alex Szpakowski
21d1e7737c
Fixed ParticleSystem:setAreaSpread("none") to not require x/y arguments (resolves issue #738 )
2013-09-17 00:54:55 -03:00
Alex Szpakowski
06f80d5c08
Fixed undefined behaviour when love exceptions are converted into Lua errors (resolves issue #729 )
2013-09-05 23:17:29 -03:00
Alex Szpakowski
4584cf6780
Always use regular vsync instead of preferring adaptive vsync if supported
2013-08-30 00:33:20 -03:00
Alex Szpakowski
75340f6c7b
Renamed love.window.getModes to love.window.getFullscreenModes (resolves issue #679 )
2013-08-29 21:42:05 -03:00
Alex Szpakowski
ec9dec6b80
Replaced luax_newtype with luax_pushtype (and added luax_rawnewtype for the old functionality of luax_newtype.)
...
luax_pushtype keeps the object in a weak table and checks the table before creating a new userdata, so it re-uses the object's existing wrapper userdata if it can, whenever the object is pushed to Lua.
This fixes some subtle issues with love objects, where using them as keys in tables would not always work as expected (https://love2d.org/forums/viewtopic.php?f=4&t=39398&p=112388#p112415 ). It also decreases the amount of new Lua objects created, saving the garbage collector some work.
2013-08-29 00:40:06 -03:00
Alex Szpakowski
526ccb12ad
Renamed love.window.isFullscreen to love.window.getFullscreen (resolves issue #721 )
2013-08-28 19:15:00 -03:00
Alex Szpakowski
51d3fe22fc
Always recreate the GL context in love.window.setMode - SDL_GL_MakeCurrent can return success sometimes in Windows even when the context is trashed
2013-08-28 01:07:00 -03:00
Alex Szpakowski
113ed1cfe7
Merged SDL2 changes from bartbes/love-experiments/SDL2 into default.
...
- Added love.system module, including clipboard functions.
- Added custom hardware cursors (love.mouse.newCursor, love.mouse.setCursor.)
- Revamped love.joystick:
-- added Joystick objects and moved love.joystick functions which operated on individual joysticks to methods on the Joystick objects.
-- Added love.joystick.getJoystick and love.joystick.getJoystickCount.
-- Added events for when joysticks are connected and disconnected.
-- Added 'Gamepad' methods to Joystick objects: Joystick:isGamepad, Joystick:getGamepadAxis, and Joystick:isGamepadDown. They're a common abstraction for xbox controller-like joystick across operating systems.
- Added monitor choosing support and "fullscreen desktop" mode to love.window.
- Moved unicode text input events to their own callback function (love.textinput), removed the key repeat functions from love.keyboard and made the second argument of love.keypressed a boolean saying whether the keypress was a repeat.
- liblove now works with love.window and love.graphics in OS X
2013-08-25 16:51:42 -03:00
Alex Szpakowski
035130533b
Updated love.window.checkMode to work when a windowflag table is used as the third parameter
2013-08-22 20:28:50 -03:00
Alex Szpakowski
76565a3e11
Renamed love.window.setCaption to love.window.setTitle (resolves issue #703 )
2013-08-14 11:16:41 -03:00
Alex Szpakowski
3e57cfd174
Slightly reduced internal reliance on specific module backends
2013-08-03 16:30:37 -03:00
Alex Szpakowski
7601ef05f4
Fixed a potential memory leak
2013-07-12 15:18:27 -03:00
Bart van Strien
25d0d87247
Add love.window.getIcon, and reset it after setMode, so it doesn't get reset (issue #667 and issue #513 )
2013-07-09 15:19:49 +02:00
Alex Szpakowski
6e3a7288dd
Improved performance of ImageData:mapPixel (now up to 2x as fast as in 0.8.0!); love.graphics.newImage, Image:refresh, love.window.setIcon, and ImageRasterizers now prevent other threads from modifying the ImageData used in those functions until they're done accessing it
2013-06-25 05:28:20 -03:00
Alex Szpakowski
1afc47511c
Fixed the graphics viewport not matching the window size when an unsupported fullscreen resolution is set
2013-06-08 08:35:16 -03:00
Alex Szpakowski
eaf69aead1
Renamed love.window.setTitle back to love.window.setCaption
...
Previous rename was unnecessary
2013-05-21 22:24:51 -03:00
Alex Szpakowski
2b54ea23de
Added love.window.isVisible
2013-05-20 06:25:51 -03:00
Alex Szpakowski
b391a9f4a6
Added love.window.hasMouseFocus (issue #120 )
2013-05-11 15:57:16 -03:00
Alex Szpakowski
ff77eb4b29
Added love.window (issue #6.) All window-related functions have been moved from love.graphics to love.window.
...
love.graphics.setCaption has been renamed to love.window.setTitle.
2013-05-10 22:32:15 -03:00
Alex Szpakowski
9fc2a085cd
Updated love.timer.getTime to be microsecond-precise and monotonic (thanks Boolsheet), removed the now-obsolete love.timer.getMicroTime (issue #492 )
2013-05-09 23:12:50 -03:00
Alex Szpakowski
d5aa807747
More internal code cleanup
2013-03-31 19:02:27 -03:00
Bart van Strien
7efe11b11f
Add centered flag to setMode, optionally centers the window (on by default, as before) (issue #463 )
2013-03-10 23:00:31 +01:00
Alex Szpakowski
4ae126ac44
Fixed some potential instability or crash issues
2013-03-03 20:23:40 -04:00
Bart van Strien
3d0c5761ce
Merge in default, update changelog
...
--HG--
branch : minor
2013-03-03 19:51:04 +01:00
Alex Szpakowski
a68bdfe7a2
Constified many Graphics and Window methods
2013-02-16 01:45:01 -04:00
Alex Szpakowski
96161c66f6
Updated copyright text for the new year
2013-02-05 05:32:49 -04:00
Alex Szpakowski
a9211a1389
Removed direct OpenGL calls in the SDL Window module
2013-01-30 00:27:46 -04:00
Bart van Strien
f81eebfb5f
Reapply sdl's keyrepeat settings after setWindow
2013-01-28 00:25:03 +01:00
Bart van Strien
bddee1753b
Use a flags table for setMode now, implement resizable and borderless windows, and add resize event
...
Example setMode invocation: love.graphics.setMode(800, 600, {fullscreen = false, vsync = true, borderless = true})
t.screen.resizable and t.screen.borderless are available in love.conf
And love.resize(w, h) gets called if it exists on a resize event.
NOTE: love.handlers.resize(w, h) does the required setMode, but that does mean a visual reload
--HG--
branch : minor
2012-07-23 11:53:13 +02:00
Bart van Strien
7793e7f02f
CRLF to LF
2012-07-04 14:40:24 +02:00
rude
81c38e22d0
Applied the new style guidelines.
...
Well, sort of. Lot's more to be done, but this is a start.
2012-06-28 23:52:33 +02:00
Bill Meltsner
be55579a22
Happy New Year, have an enormous diff
2012-01-09 02:41:11 -06:00
Bart van Strien
c78c6801e9
Formatting fix
2012-01-06 17:08:52 +01:00
Bart van Strien
f58f80397e
Fix fsaa crash on OSX, can't enable multisampling before a window is created (bug #350 )
2012-01-06 17:04:48 +01:00
Bart van Strien
7c8fff979a
Create love.window, abstract SDL out of love.graphics
2011-12-11 16:55:52 +01:00