supertux.git
9 years agoMoved some aspect ratio calculations into video/util.cpp
Ingo Ruhnke [Sun, 3 Aug 2014 03:01:18 +0000 (05:01 +0200)]
Moved some aspect ratio calculations into video/util.cpp

9 years agoReimplemented magnification and aspect ratio handling
Ingo Ruhnke [Fri, 1 Aug 2014 19:01:22 +0000 (21:01 +0200)]
Reimplemented magnification and aspect ratio handling

9 years agoFixed surfaces not getting properly converted to textures in OpenGL (i.e. wrong color...
Ingo Ruhnke [Fri, 1 Aug 2014 18:02:14 +0000 (20:02 +0200)]
Fixed surfaces not getting properly converted to textures in OpenGL (i.e. wrong colors on worldmap)

9 years agoReverted 91c1517 and reinserted the old mouse cursor code
Ingo Ruhnke [Fri, 1 Aug 2014 17:32:30 +0000 (19:32 +0200)]
Reverted 91c1517 and reinserted the old mouse cursor code

With SDL_RenderSetLogicalSize() gone the old mouse code works again
and it doesn't glitch the mouse pointer on magnification changes as
the new code does.

9 years agoReplaced SDL_RenderSetLogicalSize(), removed PHYSICAL_SCREEN_WIDTH/HEIGHT, improved...
Ingo Ruhnke [Fri, 1 Aug 2014 17:25:17 +0000 (19:25 +0200)]
Replaced SDL_RenderSetLogicalSize(), removed PHYSICAL_SCREEN_WIDTH/HEIGHT, improved mouse handling when using magnification

9 years agoRemoved foobar from Renderer::to_logical(), it's no longer needed
Ingo Ruhnke [Fri, 1 Aug 2014 16:57:09 +0000 (18:57 +0200)]
Removed foobar from Renderer::to_logical(), it's no longer needed

9 years agoRemoved platform specific path magic and use SDL_GetBasePath() instead (untested)
Ingo Ruhnke [Fri, 1 Aug 2014 16:26:40 +0000 (18:26 +0200)]
Removed platform specific path magic and use SDL_GetBasePath() instead (untested)

9 years agoAdded fullscreen switching to SDLRenderer
Ingo Ruhnke [Fri, 1 Aug 2014 02:14:41 +0000 (04:14 +0200)]
Added fullscreen switching to SDLRenderer

9 years agoMinor cleanup
Ingo Ruhnke [Fri, 1 Aug 2014 02:14:32 +0000 (04:14 +0200)]
Minor cleanup

9 years agoUse better filtering for scaling in SDL
Ingo Ruhnke [Fri, 1 Aug 2014 02:07:02 +0000 (04:07 +0200)]
Use better filtering for scaling in SDL

9 years agoClear the screen to avoid garbage in unreachable areas after we reset the coordinate...
Ingo Ruhnke [Fri, 1 Aug 2014 01:48:24 +0000 (03:48 +0200)]
Clear the screen to avoid garbage in unreachable areas after we reset the coordinate system

9 years agoPass mouse coordinates to mouse pointer manually instead of SDL_GetMouseState(),...
Ingo Ruhnke [Fri, 1 Aug 2014 01:43:48 +0000 (03:43 +0200)]
Pass mouse coordinates to mouse pointer manually instead of SDL_GetMouseState(), see bug #2442 in SDL2

9 years agoCleaned up coordinate translation a little, SDL mouse handling is still broken and...
Ingo Ruhnke [Thu, 31 Jul 2014 21:51:14 +0000 (23:51 +0200)]
Cleaned up coordinate translation a little, SDL mouse handling is still broken and SDL_RenderGetViewport() doesn't seem to return proper values

9 years agoImplemented window scaling in SDLRenderer, mouse input however breaks when scaling
Ingo Ruhnke [Thu, 31 Jul 2014 20:17:16 +0000 (22:17 +0200)]
Implemented window scaling in SDLRenderer, mouse input however breaks when scaling

9 years agoUse SCREEN_WIDTH/HEIGHT instead of SDL_RendererGetViewport(), as logical coordinates...
Ingo Ruhnke [Thu, 31 Jul 2014 19:43:44 +0000 (21:43 +0200)]
Use SCREEN_WIDTH/HEIGHT instead of SDL_RendererGetViewport(), as logical coordinates might be different then physical

9 years agoImplemented support for different blend modes in SDL
Ingo Ruhnke [Thu, 31 Jul 2014 19:27:38 +0000 (21:27 +0200)]
Implemented support for different blend modes in SDL

9 years agoImplemented sprite rotations for SDLRenderer
Ingo Ruhnke [Thu, 31 Jul 2014 19:12:03 +0000 (21:12 +0200)]
Implemented sprite rotations for SDLRenderer

9 years agoMerged drawing code from SDLLightmap and SDLRenderer into helper class SDLPainter
Ingo Ruhnke [Thu, 31 Jul 2014 19:03:59 +0000 (21:03 +0200)]
Merged drawing code from SDLLightmap and SDLRenderer into helper class SDLPainter

9 years agoRemoved pointless check for screen mode change, as we are creating the window for...
Ingo Ruhnke [Thu, 31 Jul 2014 06:26:21 +0000 (08:26 +0200)]
Removed pointless check for screen mode change, as we are creating the window for the first and only time at that point

9 years agoImplemented desktop_size discovery in GLRenderer
Ingo Ruhnke [Thu, 31 Jul 2014 06:21:23 +0000 (08:21 +0200)]
Implemented desktop_size discovery in GLRenderer

9 years agoFixed typo that made mouse clicks not function properly
Ingo Ruhnke [Thu, 31 Jul 2014 05:58:04 +0000 (07:58 +0200)]
Fixed typo that made mouse clicks not function properly

9 years agoImplemented fullscreen mode selection, OpenGL only for the moment
Ingo Ruhnke [Thu, 31 Jul 2014 05:01:43 +0000 (07:01 +0200)]
Implemented fullscreen mode selection, OpenGL only for the moment

9 years agoReenabled vsync and some other OpenGL attributes
Ingo Ruhnke [Thu, 31 Jul 2014 04:25:58 +0000 (06:25 +0200)]
Reenabled vsync and some other OpenGL attributes

9 years agoFixed window resize in OpenGL and added window resize to SDL renderer
Ingo Ruhnke [Thu, 31 Jul 2014 04:02:55 +0000 (06:02 +0200)]
Fixed window resize in OpenGL and added window resize to SDL renderer

9 years agoFixed window title and icon, removed Renderer and Lightmap creation from DrawingConte...
Ingo Ruhnke [Thu, 31 Jul 2014 03:23:41 +0000 (05:23 +0200)]
Fixed window title and icon, removed Renderer and Lightmap creation from DrawingContext and moved it to top-level init code

9 years agoImplemented Texture color modification
Ingo Ruhnke [Thu, 31 Jul 2014 03:21:32 +0000 (05:21 +0200)]
Implemented Texture color modification

9 years agoImplemented SDLLightmap::get_light(), haven't tested it
Ingo Ruhnke [Thu, 31 Jul 2014 02:38:50 +0000 (04:38 +0200)]
Implemented SDLLightmap::get_light(), haven't tested it

9 years agoAdded PHYSICAL_SCREEN_WIDTH global variable, little ugly, but should do for now,...
Ingo Ruhnke [Thu, 31 Jul 2014 02:37:42 +0000 (04:37 +0200)]
Added PHYSICAL_SCREEN_WIDTH global variable, little ugly, but should do for now, still needs to be updated properly on window resize

9 years agoImplemented basic lightmap rendering, still a bit of an incomplete hack job, drawing...
Ingo Ruhnke [Thu, 31 Jul 2014 01:02:19 +0000 (03:02 +0200)]
Implemented basic lightmap rendering, still a bit of an incomplete hack job, drawing code should be merged with SDLRenderer

9 years agoPrint some debug info for the created SDL_Renderer
Ingo Ruhnke [Wed, 30 Jul 2014 20:11:37 +0000 (22:11 +0200)]
Print some debug info for the created SDL_Renderer

9 years agoRemoved unused GUI classes Button and ButtonGroup
Ingo Ruhnke [Wed, 30 Jul 2014 18:55:31 +0000 (20:55 +0200)]
Removed unused GUI classes Button and ButtonGroup

9 years agoFixed text input in console, console itself doesn't handle unicode correctly, so...
Ingo Ruhnke [Wed, 30 Jul 2014 18:43:16 +0000 (20:43 +0200)]
Fixed text input in console, console itself doesn't handle unicode correctly, so weird stuff happens when pressing umlauts

9 years agoFixed crash when enabling console
Ingo Ruhnke [Wed, 30 Jul 2014 18:32:30 +0000 (20:32 +0200)]
Fixed crash when enabling console

9 years agoHooked up window resize event (not yet implemented in Renderer)
Ingo Ruhnke [Wed, 30 Jul 2014 18:25:46 +0000 (20:25 +0200)]
Hooked up window resize event (not yet implemented in Renderer)

9 years agoImplemented set_gamma()
Ingo Ruhnke [Wed, 30 Jul 2014 18:20:51 +0000 (20:20 +0200)]
Implemented set_gamma()

9 years agoUse fullscreen and resolution config in SDLRenderer
Ingo Ruhnke [Wed, 30 Jul 2014 17:58:17 +0000 (19:58 +0200)]
Use fullscreen and resolution config in SDLRenderer

9 years agoRemoved OLD_SDL1 software rendering code from SDL_Renderer
Ingo Ruhnke [Wed, 30 Jul 2014 17:57:56 +0000 (19:57 +0200)]
Removed OLD_SDL1 software rendering code from SDL_Renderer

9 years agoRemoved lots of OLD_SDL1 software rendering code from SDLTexture
Ingo Ruhnke [Wed, 30 Jul 2014 17:48:00 +0000 (19:48 +0200)]
Removed lots of OLD_SDL1 software rendering code from SDLTexture

9 years agoRemoved some OLD_SDL1 code
Ingo Ruhnke [Wed, 30 Jul 2014 17:44:43 +0000 (19:44 +0200)]
Removed some OLD_SDL1 code

9 years agoFixed black borders in GL renderer
Ingo Ruhnke [Wed, 30 Jul 2014 17:38:33 +0000 (19:38 +0200)]
Fixed black borders in GL renderer

9 years agoRemoved unused SDL_Surface* screen; from GLLightmap
Ingo Ruhnke [Wed, 30 Jul 2014 17:37:52 +0000 (19:37 +0200)]
Removed unused SDL_Surface* screen; from GLLightmap

9 years agoFixed radius calculation for rounded rectangles
Ingo Ruhnke [Wed, 30 Jul 2014 16:58:52 +0000 (18:58 +0200)]
Fixed radius calculation for rounded rectangles

9 years agoFixed OpenGL renderer, starts now up and game seems playable
Ingo Ruhnke [Wed, 30 Jul 2014 16:57:03 +0000 (18:57 +0200)]
Fixed OpenGL renderer, starts now up and game seems playable

9 years agoImplemented support for rounded rectangles
Ingo Ruhnke [Wed, 30 Jul 2014 16:43:17 +0000 (18:43 +0200)]
Implemented support for rounded rectangles

9 years agoImplemented SDLRenderer::do_take_screenshot()
Ingo Ruhnke [Wed, 30 Jul 2014 06:02:57 +0000 (08:02 +0200)]
Implemented SDLRenderer::do_take_screenshot()

9 years agoImplemented horizontal flipping in SDLRenderer
Ingo Ruhnke [Wed, 30 Jul 2014 05:52:57 +0000 (07:52 +0200)]
Implemented horizontal flipping in SDLRenderer

9 years agoImplemented SDLRenderer::draw_inverse_ellipse()
Ingo Ruhnke [Wed, 30 Jul 2014 05:31:13 +0000 (07:31 +0200)]
Implemented SDLRenderer::draw_inverse_ellipse()

9 years agoMore .gitignore
Ingo Ruhnke [Wed, 30 Jul 2014 04:12:35 +0000 (06:12 +0200)]
More .gitignore

9 years agoImplemented basic rendering operations, game is now playable again, rounded rectangle...
Ingo Ruhnke [Wed, 30 Jul 2014 04:12:13 +0000 (06:12 +0200)]
Implemented basic rendering operations, game is now playable again, rounded rectangles and other details still missing or broken

9 years agoRemoved unused "void Renderer::draw_text(const DrawingRequest& request);"
Ingo Ruhnke [Wed, 30 Jul 2014 04:09:47 +0000 (06:09 +0200)]
Removed unused "void Renderer::draw_text(const DrawingRequest& request);"

9 years agoAdded -Wno-unused-parameter to disable annoying compiler warning
Ingo Ruhnke [Wed, 30 Jul 2014 03:11:25 +0000 (05:11 +0200)]
Added -Wno-unused-parameter to disable annoying compiler warning

9 years agoDisabled some more code, game now starts up and plays music, no graphics yet, just...
Ingo Ruhnke [Wed, 30 Jul 2014 03:10:28 +0000 (05:10 +0200)]
Disabled some more code, game now starts up and plays music, no graphics yet, just a black screen

9 years agoMade code compile, not work, with SDL2, old code that needs work is disabled and...
Ingo Ruhnke [Wed, 30 Jul 2014 01:28:59 +0000 (03:28 +0200)]
Made code compile, not work, with SDL2, old code that needs work is disabled and marked with "#ifdef OLD_SDL1"

9 years agoAdAdded check for SDL2 to CMake
Ingo Ruhnke [Wed, 30 Jul 2014 01:11:37 +0000 (03:11 +0200)]
AdAdded check for SDL2 to CMake

9 years agoFixed SDL2 include, should just be SDL.h
Ingo Ruhnke [Wed, 30 Jul 2014 01:11:21 +0000 (03:11 +0200)]
Fixed SDL2 include, should just be SDL.h

9 years agoPurged SDL2 source code from the sourcetree, it's not needed
Ingo Ruhnke [Wed, 30 Jul 2014 01:09:45 +0000 (03:09 +0200)]
Purged SDL2 source code from the sourcetree, it's not needed

10 years agoMore fixes, down to 4 errors
Tobias Markus [Mon, 12 May 2014 11:12:17 +0000 (13:12 +0200)]
More fixes, down to 4 errors

10 years agoMore fixes, SetAlpha problems remaining
Tobias Markus [Mon, 12 May 2014 11:02:03 +0000 (13:02 +0200)]
More fixes, SetAlpha problems remaining

10 years agoMore fixes
Tobias Markus [Mon, 12 May 2014 10:51:48 +0000 (12:51 +0200)]
More fixes

10 years agoMore SDL2 fixes
Tobias Markus [Mon, 12 May 2014 10:38:27 +0000 (12:38 +0200)]
More SDL2 fixes

10 years agoFixing a few compiler errors, thanks to bluescreen_avenger at verizon dot net
Tobias Markus [Mon, 12 May 2014 10:20:49 +0000 (12:20 +0200)]
Fixing a few compiler errors, thanks to bluescreen_avenger at verizon dot net

10 years agoUpdate to SDL version 2.0.1
Tobias Markus [Fri, 24 Jan 2014 21:55:45 +0000 (22:55 +0100)]
Update to SDL version 2.0.1

10 years agoLower savebell sound for bigger bell
Tobias Markus [Fri, 24 Jan 2014 00:07:59 +0000 (01:07 +0100)]
Lower savebell sound for bigger bell

10 years agoChange email address in SuperTux.appdata.xml file
Tobias Markus [Thu, 23 Jan 2014 00:33:35 +0000 (01:33 +0100)]
Change email address in SuperTux.appdata.xml file

10 years agoAdd appdata
Benjamin Leduc [Thu, 23 Jan 2014 00:00:12 +0000 (01:00 +0100)]
Add appdata

10 years agoZvNjGB4k
Benjamin Leduc [Mon, 13 Jan 2014 22:04:09 +0000 (23:04 +0100)]
ZvNjGB4k

10 years agoDecreasing egg animation speed by 5 fps in order for it to look more like an egg
Tobias Markus [Wed, 8 Jan 2014 23:06:45 +0000 (00:06 +0100)]
Decreasing egg animation speed by 5 fps in order for it to look more like an egg

10 years agoRevert "Speed improvement: Moving check online to different thread"
LMH [Fri, 3 Jan 2014 17:24:43 +0000 (07:24 -1000)]
Revert "Speed improvement: Moving check online to different thread"

Temporarily reverting changes to addon_menu.cpp until they can be built on platforms other than OS X Mavericks.

This reverts commit 6d4d72e1670b7661049efdb378056b3a4333b467.

10 years agoTransation update
Benjamin Leduc [Thu, 2 Jan 2014 17:21:30 +0000 (18:21 +0100)]
Transation update

10 years agoAdded a dead_script to ghosttree so that issue #34 could be closed
LMH [Sun, 29 Dec 2013 03:32:20 +0000 (17:32 -1000)]
Added a dead_script to ghosttree so that issue #34 could be closed

10 years agoRenamed some variables for rusty_trampoline since the build process for Windows canno...
LMH [Sun, 29 Dec 2013 02:55:15 +0000 (16:55 -1000)]
Renamed some variables for rusty_trampoline since the build process for Windows cannot figure out namespaces and otherwise fails, resolves issue 33

10 years agocopyright update-2
SuperMAT [Mon, 23 Dec 2013 16:30:34 +0000 (17:30 +0100)]
copyright update-2

10 years agocopyright update
SuperMAT [Mon, 23 Dec 2013 16:26:29 +0000 (17:26 +0100)]
copyright update

10 years agocredits update-2
Benjamin Leduc [Thu, 19 Dec 2013 23:35:57 +0000 (00:35 +0100)]
credits update-2

10 years agocredits update
Benjamin Leduc [Thu, 19 Dec 2013 16:57:22 +0000 (17:57 +0100)]
credits update

10 years agoWIP improvement: Egg powerup rotation
Tobias Markus [Tue, 17 Dec 2013 14:52:54 +0000 (15:52 +0100)]
WIP improvement: Egg powerup rotation

10 years agotrouble in coding-UTF-8
Benjamin Leduc [Tue, 17 Dec 2013 16:23:23 +0000 (17:23 +0100)]
trouble in coding-UTF-8

10 years agotrouble in coding-UTF-8
Benjamin Leduc [Tue, 17 Dec 2013 16:21:34 +0000 (17:21 +0100)]
trouble in coding-UTF-8

10 years agotrouble in coding
Benjamin Leduc [Tue, 17 Dec 2013 15:33:45 +0000 (16:33 +0100)]
trouble in coding

10 years agoTinygettext little hack
Benjamin Leduc [Tue, 17 Dec 2013 14:33:04 +0000 (15:33 +0100)]
Tinygettext little hack

10 years ago=Languages upgrade
Benjamin Leduc [Tue, 17 Dec 2013 13:37:38 +0000 (14:37 +0100)]
=Languages upgrade

10 years agoUsing filename instead of author and level name
Tobias Markus [Mon, 16 Dec 2013 00:22:34 +0000 (01:22 +0100)]
Using filename instead of author and level name

10 years agoShowing git commit hash in title bar instead of svn version
Tobias Markus [Mon, 16 Dec 2013 00:01:58 +0000 (01:01 +0100)]
Showing git commit hash in title bar instead of svn version

10 years agoAdding level author and name to level license warning
Tobias Markus [Sun, 15 Dec 2013 21:38:06 +0000 (22:38 +0100)]
Adding level author and name to level license warning

10 years agoAdding current level name and author to badguy warning
Tobias Markus [Sun, 15 Dec 2013 20:58:50 +0000 (21:58 +0100)]
Adding current level name and author to badguy warning

10 years agoSpeed improvement: Moving check online to different thread
Tobias Markus [Sun, 15 Dec 2013 20:24:37 +0000 (21:24 +0100)]
Speed improvement: Moving check online to different thread

10 years agoDon't count angrystone in level stats
Tobias Markus [Mon, 9 Dec 2013 14:04:25 +0000 (15:04 +0100)]
Don't count angrystone in level stats
Formatting update for molerock

10 years agoUpdate OS X Info.plist to newer identifier and 0.3.4-GIT
SuperMAT [Sat, 23 Nov 2013 14:49:56 +0000 (15:49 +0100)]
Update OS X Info.plist to newer identifier and 0.3.4-GIT

10 years agoAllow OS X users to remove SuperTux using Launchpad
SuperMAT [Sat, 23 Nov 2013 14:11:07 +0000 (15:11 +0100)]
Allow OS X users to remove SuperTux using Launchpad

10 years ago=Language and font update
Benjamin Leduc [Sat, 16 Nov 2013 20:37:40 +0000 (21:37 +0100)]
=Language and font update

10 years agoFixing compiler errors on Mavericks (not sure if those appeared for everyone)
Tobias Markus [Mon, 11 Nov 2013 14:51:59 +0000 (15:51 +0100)]
Fixing compiler errors on Mavericks (not sure if those appeared for everyone)

10 years agoTraditional chiness pictograms addition
Benjamin Leduc [Sun, 10 Nov 2013 21:18:29 +0000 (22:18 +0100)]
Traditional chiness pictograms addition

10 years agoSome minor code cleanup resulting from a user running code through cppcheck, mostly...
LMH [Thu, 7 Nov 2013 00:12:19 +0000 (14:12 -1000)]
Some minor code cleanup resulting from a user running code through cppcheck, mostly removal of redundant code

More info on fan forum: http://forum.freegamedev.net/viewtopic.php?f=68&t=5048

10 years agoChanges to gitignore to make working with translations from Transifex easier
LMH [Thu, 7 Nov 2013 00:06:33 +0000 (14:06 -1000)]
Changes to gitignore to make working with translations from Transifex easier

10 years agoDon't resurrect zeekling when colliding after squished
Tobias Markus [Tue, 5 Nov 2013 17:34:10 +0000 (18:34 +0100)]
Don't resurrect zeekling when colliding after squished

10 years agofixed forest slop tiling issues bug#73
CT. da'Bomb [Mon, 4 Nov 2013 21:06:26 +0000 (15:06 -0600)]
fixed forest slop tiling issues bug#73

10 years agoDo not resurrect squished bouncing snowball when colliding with badguy or tile
Tobias Markus [Mon, 4 Nov 2013 20:15:27 +0000 (21:15 +0100)]
Do not resurrect squished bouncing snowball when colliding with badguy or tile

10 years agoFixing SuperTux crashes when compiled on Mac OS X 10.9
Tobias Markus [Fri, 1 Nov 2013 16:31:17 +0000 (17:31 +0100)]
Fixing SuperTux crashes when compiled on Mac OS X 10.9

10 years agoFixing some more compiler errors in Maverick
Tobias Markus [Mon, 28 Oct 2013 23:50:04 +0000 (00:50 +0100)]
Fixing some more compiler errors in Maverick

10 years agoFixing variable warnings in mrtree.cpp
Tobias Markus [Mon, 28 Oct 2013 13:05:49 +0000 (14:05 +0100)]
Fixing variable warnings in mrtree.cpp