Browse Source

Merge 'default' into 'minor'

--HG--
branch : minor
Bart van Strien 14 years ago
parent
commit
677df8d4f0
100 changed files with 573 additions and 628 deletions
  1. 27 132
      extra/nsis/love.nsi
  2. 1 1
      license.txt
  3. 4 1
      platform/macosx/love.xcodeproj/project.pbxproj
  4. 2 0
      platform/msvc2010/app.rc
  5. BIN
      platform/msvc2010/love.ico
  6. 6 0
      platform/msvc2010/love.vcxproj
  7. 6 0
      platform/msvc2010/love.vcxproj.filters
  8. 1 1
      src/common/Data.h
  9. 18 18
      src/common/EnumMap.h
  10. 1 1
      src/common/Exception.cpp
  11. 1 1
      src/common/Exception.h
  12. 16 7
      src/common/Matrix.cpp
  13. 9 9
      src/common/Matrix.h
  14. 1 1
      src/common/MemoryData.cpp
  15. 1 1
      src/common/MemoryData.h
  16. 18 18
      src/common/Module.h
  17. 18 18
      src/common/Object.cpp
  18. 18 18
      src/common/Object.h
  19. 1 1
      src/common/Reference.cpp
  20. 18 18
      src/common/Reference.h
  21. 1 1
      src/common/StringMap.h
  22. 2 2
      src/common/Vector.cpp
  23. 11 11
      src/common/Vector.h
  24. 39 39
      src/common/b64.cpp
  25. 1 1
      src/common/b64.h
  26. 1 1
      src/common/config.h
  27. 9 9
      src/common/math.h
  28. 2 2
      src/common/runtime.cpp
  29. 1 1
      src/common/runtime.h
  30. 1 1
      src/common/types.h
  31. 1 1
      src/common/utf8.cpp
  32. 1 1
      src/common/utf8.h
  33. 1 1
      src/common/version.h
  34. 1 1
      src/common/wrap_Data.cpp
  35. 1 1
      src/common/wrap_Data.h
  36. 1 1
      src/libraries/luasocket/luasocket.cpp
  37. 2 2
      src/libraries/luasocket/luasocket.h
  38. 1 1
      src/love.cpp
  39. 1 1
      src/modules/audio/Audio.h
  40. 27 27
      src/modules/audio/Source.cpp
  41. 3 3
      src/modules/audio/Source.h
  42. 1 1
      src/modules/audio/null/Audio.cpp
  43. 1 1
      src/modules/audio/null/Audio.h
  44. 1 1
      src/modules/audio/null/Source.cpp
  45. 4 4
      src/modules/audio/null/Source.h
  46. 1 1
      src/modules/audio/openal/Audio.cpp
  47. 1 1
      src/modules/audio/openal/Audio.h
  48. 22 22
      src/modules/audio/openal/Pool.cpp
  49. 1 1
      src/modules/audio/openal/Pool.h
  50. 3 2
      src/modules/audio/openal/Source.cpp
  51. 20 20
      src/modules/audio/openal/Source.h
  52. 1 1
      src/modules/audio/wrap_Audio.cpp
  53. 1 1
      src/modules/audio/wrap_Audio.h
  54. 1 1
      src/modules/audio/wrap_Source.cpp
  55. 1 1
      src/modules/audio/wrap_Source.h
  56. 18 18
      src/modules/event/Event.cpp
  57. 18 18
      src/modules/event/Event.h
  58. 2 2
      src/modules/event/sdl/Event.cpp
  59. 28 28
      src/modules/event/sdl/Event.h
  60. 2 2
      src/modules/event/sdl/wrap_Event.cpp
  61. 1 1
      src/modules/event/sdl/wrap_Event.h
  62. 20 20
      src/modules/filesystem/File.cpp
  63. 7 7
      src/modules/filesystem/File.h
  64. 15 15
      src/modules/filesystem/FileData.cpp
  65. 3 3
      src/modules/filesystem/FileData.h
  66. 1 1
      src/modules/filesystem/physfs/File.cpp
  67. 1 1
      src/modules/filesystem/physfs/File.h
  68. 15 1
      src/modules/filesystem/physfs/Filesystem.cpp
  69. 3 1
      src/modules/filesystem/physfs/Filesystem.h
  70. 1 1
      src/modules/filesystem/physfs/wrap_File.cpp
  71. 1 1
      src/modules/filesystem/physfs/wrap_File.h
  72. 1 1
      src/modules/filesystem/physfs/wrap_FileData.cpp
  73. 1 1
      src/modules/filesystem/physfs/wrap_FileData.h
  74. 7 1
      src/modules/filesystem/physfs/wrap_Filesystem.cpp
  75. 2 1
      src/modules/filesystem/physfs/wrap_Filesystem.h
  76. 1 1
      src/modules/font/Font.h
  77. 1 1
      src/modules/font/FontData.cpp
  78. 1 1
      src/modules/font/FontData.h
  79. 1 1
      src/modules/font/GlyphData.cpp
  80. 1 1
      src/modules/font/GlyphData.h
  81. 1 1
      src/modules/font/ImageRasterizer.cpp
  82. 1 1
      src/modules/font/ImageRasterizer.h
  83. 18 18
      src/modules/font/Rasterizer.cpp
  84. 1 1
      src/modules/font/Rasterizer.h
  85. 2 2
      src/modules/font/freetype/Font.cpp
  86. 1 1
      src/modules/font/freetype/Font.h
  87. 1 1
      src/modules/font/freetype/TrueTypeRasterizer.cpp
  88. 1 1
      src/modules/font/freetype/TrueTypeRasterizer.h
  89. 1 1
      src/modules/font/freetype/wrap_Font.cpp
  90. 1 1
      src/modules/font/freetype/wrap_Font.h
  91. 1 1
      src/modules/font/wrap_FontData.cpp
  92. 1 1
      src/modules/font/wrap_FontData.h
  93. 1 1
      src/modules/font/wrap_GlyphData.cpp
  94. 1 1
      src/modules/font/wrap_GlyphData.h
  95. 1 1
      src/modules/font/wrap_Rasterizer.cpp
  96. 1 1
      src/modules/font/wrap_Rasterizer.h
  97. 16 16
      src/modules/graphics/Drawable.cpp
  98. 18 18
      src/modules/graphics/Drawable.h
  99. 1 1
      src/modules/graphics/Graphics.cpp
  100. 18 18
      src/modules/graphics/Graphics.h

+ 27 - 132
extra/nsis/love.nsi

@@ -1,22 +1,27 @@
-!include "MUI.nsh" # Modern look, plxz
+!include "MUI2.nsh" # Modern look, plxz
 
 
 Name "LOVE"
 Name "LOVE"
-OutFile "love-0.5-0.exe"
-Icon "love.ico" # this doesn't seem to work
+
+OutFile ${LOVEEXE}
 
 
 InstallDir $PROGRAMFILES\LOVE
 InstallDir $PROGRAMFILES\LOVE
 InstallDirRegKey HKCU "Software\LOVE" ""
 InstallDirRegKey HKCU "Software\LOVE" ""
 
 
 # Graphics
 # Graphics
+!define MUI_ICON "love\extra\nsis\love.ico"
+!define MUI_UNICON "love\extra\nsis\love.ico"
 !define MUI_ABORTWARNING
 !define MUI_ABORTWARNING
 !define MUI_HEADERIMAGE
 !define MUI_HEADERIMAGE
-!define MUI_HEADERIMAGE_BITMAP "top.bmp" # optional
-!define MUI_WELCOMEFINISHPAGE_BITMAP "left.bmp"
-!define MUI_UNWELCOMEFINISHPAGE_BITMAP "left.bmp"
+!define MUI_HEADERIMAGE_BITMAP "love\extra\nsis\top.bmp" # optional
+!define MUI_WELCOMEFINISHPAGE_BITMAP "love\extra\nsis\left.bmp"
+!define MUI_UNWELCOMEFINISHPAGE_BITMAP "love\extra\nsis\left.bmp"
+
+!define MUI_WELCOMEPAGE_TITLE "LÖVE Setup"
+!define MUI_WELCOMEPAGE_TEXT "This will install LÖVE, the unquestionably awesome Lua game framework."
 
 
 # Pages
 # Pages
 !insertmacro MUI_PAGE_WELCOME
 !insertmacro MUI_PAGE_WELCOME
-!insertmacro MUI_PAGE_LICENSE "..\..\license.txt"
+!insertmacro MUI_PAGE_LICENSE "love\license.txt"
 !insertmacro MUI_PAGE_COMPONENTS
 !insertmacro MUI_PAGE_COMPONENTS
 !insertmacro MUI_PAGE_DIRECTORY
 !insertmacro MUI_PAGE_DIRECTORY
 !insertmacro MUI_PAGE_INSTFILES
 !insertmacro MUI_PAGE_INSTFILES
@@ -33,86 +38,21 @@ Section "LOVE" MainProg
 
 
 	SectionIn RO
 	SectionIn RO
 	SetOutPath $INSTDIR
 	SetOutPath $INSTDIR
-
-	# Program
-	File ..\..\platform\msvc\Release\love.exe
-	
-	# Modules
-	#File ..\..\platform\msvc\Release\love_chipmunk.dll
-	#File ..\..\platform\msvc\Release\love_opengl.dll
-	#File ..\..\platform\msvc\Release\love_physfs.dll
-	#File ..\..\platform\msvc\Release\love_sdlkeyboard.dll
-	#File ..\..\platform\msvc\Release\love_sdlmixer.dll
-	#File ..\..\platform\msvc\Release\love_sdlmouse.dll
-	#File ..\..\platform\msvc\Release\love_sdltimer.dll
-	#File ..\..\platform\msvc\Release\love_system.dll
-	
-	# DLLs
-	File ..\..\platform\msvc\DevIL.dll
-	File ..\..\platform\msvc\ILU.dll
-	File ..\..\platform\msvc\SDL.dll
-	File ..\..\platform\msvc\SDL_mixer.dll
-	File ..\..\platform\msvc\Microsoft.VC80.CRT.manifest
-	File ..\..\platform\msvc\msvcp80.dll
-	File ..\..\platform\msvc\msvcr80.dll
-	
-	# Delete old DLLS (from 0.2.1 - 0.3.1)
-	Delete $INSTDIR\love_chipmunk.dll
-	Delete $INSTDIR\love_opengl.dll
-	Delete $INSTDIR\love_physfs.dll
-	Delete $INSTDIR\love_sdlkeyboard.dll
-	Delete $INSTDIR\love_sdlmixer.dll
-	Delete $INSTDIR\love_sdlmouse.dll
-	Delete $INSTDIR\love_sdltimer.dll
-	Delete $INSTDIR\love_system.dll
-	Delete $INSTDIR\freetype6.dll
-	Delete $INSTDIR\ILUT.dll
-	Delete $INSTDIR\libogg-0.dll
-	Delete $INSTDIR\libvorbis-0.dll
-	Delete $INSTDIR\libvorbisfile-3.dll
-	Delete $INSTDIR\lua5.1.dll
-	Delete $INSTDIR\physfs.dll
-	Delete $INSTDIR\smpeg.dll
-	Delete $INSTDIR\zlib1.dll
-	
-	# Delete old demos.
-	Delete $INSTDIR\demos\kkav.love
-	Delete $INSTDIR\demos\passingclouds.love
-	Delete $INSTDIR\demos\sinescroller.love
-	Delete $INSTDIR\demos\no.love
-	Delete $INSTDIR\demos\particles.love
-
-	# Icons
-	File love.ico
-	File game.ico
-	# Text
-	File ..\..\changes.txt
-	File ..\..\license.txt
-	File ..\..\readme.txt
+	File "love\platform\msvc2010\Release\love.exe"
+	File "love\platform\msvc2010\DevIL.dll"
+	File "love\platform\msvc2010\SDL.dll"
+	File "love\platform\msvc2010\OpenAL32.dll"
+	File "love\extra\nsis\love.ico"
+	File "love\extra\nsis\game.ico"
 
 
 	# Uninstaller
 	# Uninstaller
 	WriteUninstaller $INSTDIR\Uninstall.exe
 	WriteUninstaller $INSTDIR\Uninstall.exe
 
 
-	# Start Menu
-	# Remove old menu items (from 0.2.0)
-	Delete "$SMPROGRAMS\LOVE\Demos\Animation Demo.lnk"
-	Delete "$SMPROGRAMS\LOVE\Demos\Chinchilla.lnk"
-	Delete "$SMPROGRAMS\LOVE\Demos\Color Blend Demo.lnk"
-	Delete "$SMPROGRAMS\LOVE\Demos\Hello LOVE.lnk"
-	Delete "$SMPROGRAMS\LOVE\Demos\Mouse and Image Basics.lnk"
-	Delete "$SMPROGRAMS\LOVE\Demos\Movement.lnk"
-	Delete "$SMPROGRAMS\LOVE\Demos\Passing Clouds.lnk"
-	Delete "$SMPROGRAMS\LOVE\Demos\Sound.lnk"
-	Delete "$SMPROGRAMS\LOVE\Demos\Text Demo.lnk"
-	RMDir "$SMPROGRAMS\LOVE\Demos"
-	Delete "$SMPROGRAMS\LOVE\LOVE.lnk"
-	Delete "$SMPROGRAMS\LOVE\Uninstall.lnk"
-	Delete "$SMPROGRAMS\LOVE\Documentation.url"
 	# Add new start menu items
 	# Add new start menu items
 	CreateDirectory "$SMPROGRAMS\LOVE"
 	CreateDirectory "$SMPROGRAMS\LOVE"
 	CreateShortCut "$SMPROGRAMS\LOVE\LOVE.lnk" "$INSTDIR\love.exe"
 	CreateShortCut "$SMPROGRAMS\LOVE\LOVE.lnk" "$INSTDIR\love.exe"
 	CreateShortCut "$SMPROGRAMS\LOVE\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
 	CreateShortCut "$SMPROGRAMS\LOVE\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
-	WriteINIStr "$SMPROGRAMS\LOVE\Documentation.url" "InternetShortcut" "URL" "http://love.sourceforge.net/docs/"
+	WriteINIStr "$SMPROGRAMS\LOVE\Documentation.url" "InternetShortcut" "URL" "http://love2d.org/wiki/"
 
 
 	# Desktop
 	# Desktop
 	CreateShortCut "$DESKTOP\LOVE.lnk" "$INSTDIR\love.exe" ""
 	CreateShortCut "$DESKTOP\LOVE.lnk" "$INSTDIR\love.exe" ""
@@ -134,70 +74,25 @@ Section "LOVE" MainProg
 
 
 SectionEnd
 SectionEnd
 
 
-# Demos
-Section "Demos" Demos
-
-	SetOutPath $INSTDIR\demos
-
-	# Files
-	File ..\..\demos\lovalanche.love
-	File ..\..\demos\no.love
-	File ..\..\demos\particles.love
-
-	# Start menu
-	CreateShortCut "$SMPROGRAMS\LOVE\Demos.lnk" "$INSTDIR\demos"
-
-SectionEnd
-
 # Descriptions
 # Descriptions
 LangString DESC_MainProg ${LANG_ENGLISH} "Main program."
 LangString DESC_MainProg ${LANG_ENGLISH} "Main program."
-LangString DESC_Demos ${LANG_ENGLISH} "A series of demos to show what LOVE can do."
 
 
 # Assign language strings to sections
 # Assign language strings to sections
 !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
 !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
 	!insertmacro MUI_DESCRIPTION_TEXT ${MainProg} $(DESC_MainProg)
 	!insertmacro MUI_DESCRIPTION_TEXT ${MainProg} $(DESC_MainProg)
-	!insertmacro MUI_DESCRIPTION_TEXT ${Demos} $(DESC_Demos)
 !insertmacro MUI_FUNCTION_DESCRIPTION_END
 !insertmacro MUI_FUNCTION_DESCRIPTION_END
 
 
 # Uninstall
 # Uninstall
 Section "Uninstall"
 Section "Uninstall"
-
-	# Delete Demos
-	Delete $INSTDIR\demos\lovalanche.love
-	Delete $INSTDIR\demos\no.love
-	Delete $INSTDIR\demos\particles.love
-
-	RMDir $INSTDIR\demos
-	# Program
-	Delete $INSTDIR\love.exe
-	# Modules
-	# Delete $INSTDIR\love_chipmunk.dll
-	# Delete $INSTDIR\love_opengl.dll
-	# Delete $INSTDIR\love_physfs.dll
-	# Delete $INSTDIR\love_sdlkeyboard.dll
-	# Delete $INSTDIR\love_sdlmixer.dll
-	# Delete $INSTDIR\love_sdlmouse.dll
-	# Delete $INSTDIR\love_sdltimer.dll
-	# Delete $INSTDIR\love_system.dll
-	# DLLs
-	Delete $INSTDIR\DevIL.dll
-	Delete $INSTDIR\ILU.dll
-	Delete $INSTDIR\SDL.dll
-	Delete $INSTDIR\SDL_mixer.dll
-	Delete $INSTDIR\Microsoft.VC80.CRT.manifest
-	Delete $INSTDIR\msvcp80.dll
-	Delete $INSTDIR\msvcr80.dll
-	# Icons
-	Delete $INSTDIR\love.ico
-	Delete $INSTDIR\game.ico
-	# Text
-	Delete $INSTDIR\changes.txt
-	Delete $INSTDIR\license.txt
-	Delete $INSTDIR\readme.txt
+	Delete $INSTDIR\"DevIL.dll"
+	Delete $INSTDIR\"SDL.dll"
+	Delete $INSTDIR\"love.exe"
+	Delete $INSTDIR\"OpenAL32.dll"
+	Delete $INSTDIR\"game.ico"
+	Delete $INSTDIR\"love.ico"
 	RMDir $INSTDIR
 	RMDir $INSTDIR
-
+	
 	# Start menu
 	# Start menu
-	Delete "$SMPROGRAMS\LOVE\Demos.lnk"
 	Delete "$SMPROGRAMS\LOVE\LOVE.lnk"
 	Delete "$SMPROGRAMS\LOVE\LOVE.lnk"
 	Delete "$SMPROGRAMS\LOVE\Uninstall.lnk"
 	Delete "$SMPROGRAMS\LOVE\Uninstall.lnk"
 	Delete "$SMPROGRAMS\LOVE\Documentation.url"
 	Delete "$SMPROGRAMS\LOVE\Documentation.url"
@@ -216,4 +111,4 @@ Section "Uninstall"
 	# Refresh shell icons
 	# Refresh shell icons
 	System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v  (0x08000000, 0, 0, 0)'
 	System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v  (0x08000000, 0, 0, 0)'
 
 
-SectionEnd
+SectionEnd

+ 1 - 1
license.txt

@@ -1,4 +1,4 @@
-Copyright (c) 2006-2010 LOVE Development Team
+Copyright (c) 2006-2011 LOVE Development Team
 
 
 This software is provided 'as-is', without any express or implied
 This software is provided 'as-is', without any express or implied
 warranty. In no event will the authors be held liable for any damages
 warranty. In no event will the authors be held liable for any damages

+ 4 - 1
platform/macosx/love.xcodeproj/project.pbxproj

@@ -1719,7 +1719,7 @@
 				GCC_OPTIMIZATION_LEVEL = 0;
 				GCC_OPTIMIZATION_LEVEL = 0;
 				GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = NO;
 				GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = NO;
 				GCC_TREAT_NONCONFORMANT_CODE_ERRORS_AS_WARNINGS = NO;
 				GCC_TREAT_NONCONFORMANT_CODE_ERRORS_AS_WARNINGS = NO;
-				GCC_VERSION = "";
+				GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
 				GCC_WARN_64_TO_32_BIT_CONVERSION = NO;
 				GCC_WARN_64_TO_32_BIT_CONVERSION = NO;
 				GCC_WARN_ABOUT_MISSING_NEWLINE = NO;
 				GCC_WARN_ABOUT_MISSING_NEWLINE = NO;
 				GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO;
 				GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO;
@@ -1745,6 +1745,7 @@
 					../../src/modules,
 					../../src/modules,
 				);
 				);
 				LIBRARY_SEARCH_PATHS = "";
 				LIBRARY_SEARCH_PATHS = "";
+				MACOSX_DEPLOYMENT_TARGET = 10.5;
 				ONLY_ACTIVE_ARCH = YES;
 				ONLY_ACTIVE_ARCH = YES;
 				OTHER_LDFLAGS = "";
 				OTHER_LDFLAGS = "";
 				PREBINDING = YES;
 				PREBINDING = YES;
@@ -1762,6 +1763,7 @@
 			isa = XCBuildConfiguration;
 			isa = XCBuildConfiguration;
 			buildSettings = {
 			buildSettings = {
 				ARCHS = "$(ARCHS_STANDARD_32_BIT)";
 				ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+				DEPLOYMENT_POSTPROCESSING = NO;
 				FRAMEWORK_SEARCH_PATHS = "";
 				FRAMEWORK_SEARCH_PATHS = "";
 				GCC_C_LANGUAGE_STANDARD = c99;
 				GCC_C_LANGUAGE_STANDARD = c99;
 				GCC_INPUT_FILETYPE = automatic;
 				GCC_INPUT_FILETYPE = automatic;
@@ -1795,6 +1797,7 @@
 					../../src,
 					../../src,
 					../../src/modules,
 					../../src/modules,
 				);
 				);
+				LD_RUNPATH_SEARCH_PATHS = "@loader_path/../Frameworks";
 				LIBRARY_SEARCH_PATHS = "";
 				LIBRARY_SEARCH_PATHS = "";
 				ONLY_ACTIVE_ARCH = NO;
 				ONLY_ACTIVE_ARCH = NO;
 				OTHER_LDFLAGS = "";
 				OTHER_LDFLAGS = "";

+ 2 - 0
platform/msvc2010/app.rc

@@ -0,0 +1,2 @@
+LANGUAGE 7, 3
+1           ICON         "love.ico"

BIN
platform/msvc2010/love.ico


+ 6 - 0
platform/msvc2010/love.vcxproj

@@ -305,6 +305,12 @@
     <ClInclude Include="..\..\src\modules\timer\sdl\Timer.h" />
     <ClInclude Include="..\..\src\modules\timer\sdl\Timer.h" />
     <ClInclude Include="..\..\src\modules\timer\sdl\wrap_Timer.h" />
     <ClInclude Include="..\..\src\modules\timer\sdl\wrap_Timer.h" />
   </ItemGroup>
   </ItemGroup>
+  <ItemGroup>
+    <ResourceCompile Include="app.rc" />
+  </ItemGroup>
+  <ItemGroup>
+    <None Include="love.ico" />
+  </ItemGroup>
   <PropertyGroup Label="Globals">
   <PropertyGroup Label="Globals">
     <ProjectGuid>{AED6D87B-9F81-49D0-8C6B-1C9F64421ECC}</ProjectGuid>
     <ProjectGuid>{AED6D87B-9F81-49D0-8C6B-1C9F64421ECC}</ProjectGuid>
     <RootNamespace>love</RootNamespace>
     <RootNamespace>love</RootNamespace>

+ 6 - 0
platform/msvc2010/love.vcxproj.filters

@@ -967,4 +967,10 @@
       <Filter>modules\graphics\opengl</Filter>
       <Filter>modules\graphics\opengl</Filter>
     </ClInclude>
     </ClInclude>
   </ItemGroup>
   </ItemGroup>
+  <ItemGroup>
+    <ResourceCompile Include="app.rc" />
+  </ItemGroup>
+  <ItemGroup>
+    <None Include="love.ico" />
+  </ItemGroup>
 </Project>
 </Project>

+ 1 - 1
src/common/Data.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 18 - 18
src/common/EnumMap.h

@@ -1,21 +1,21 @@
-/**
-* Copyright (c) 2006-2010 LOVE Development Team
-* 
-* This software is provided 'as-is', without any express or implied
-* warranty.  In no event will the authors be held liable for any damages
-* arising from the use of this software.
-* 
-* Permission is granted to anyone to use this software for any purpose,
-* including commercial applications, and to alter it and redistribute it
-* freely, subject to the following restrictions:
-* 
-* 1. The origin of this software must not be misrepresented; you must not
-*    claim that you wrote the original software. If you use this software
-*    in a product, an acknowledgment in the product documentation would be
-*    appreciated but is not required.
-* 2. Altered source versions must be plainly marked as such, and must not be
-*    misrepresented as being the original software.
-* 3. This notice may not be removed or altered from any source distribution.
+/**
+* Copyright (c) 2006-2011 LOVE Development Team
+* 
+* This software is provided 'as-is', without any express or implied
+* warranty.  In no event will the authors be held liable for any damages
+* arising from the use of this software.
+* 
+* Permission is granted to anyone to use this software for any purpose,
+* including commercial applications, and to alter it and redistribute it
+* freely, subject to the following restrictions:
+* 
+* 1. The origin of this software must not be misrepresented; you must not
+*    claim that you wrote the original software. If you use this software
+*    in a product, an acknowledgment in the product documentation would be
+*    appreciated but is not required.
+* 2. Altered source versions must be plainly marked as such, and must not be
+*    misrepresented as being the original software.
+* 3. This notice may not be removed or altered from any source distribution.
 **/
 **/
 
 
 #ifndef LOVE_ENUM_MAP_H
 #ifndef LOVE_ENUM_MAP_H

+ 1 - 1
src/common/Exception.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/common/Exception.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 16 - 7
src/common/Matrix.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages
@@ -118,12 +118,21 @@ namespace love
 
 
 	void Matrix::setTransformation(float x, float y, float angle, float sx, float sy, float ox, float oy)
 	void Matrix::setTransformation(float x, float y, float angle, float sx, float sy, float ox, float oy)
 	{
 	{
-		// TODO: This works fine, but should consider speeding this up a little.
-		setIdentity();
-		translate(x, y);
-		rotate(angle);
-		scale(sx, sy);
-		translate(-ox, -oy);
+		memset(e, 0, sizeof(float)*16); // zero out matrix
+		float c = cos(angle), s = sin(angle);
+		// matrix multiplication carried out on paper:
+		// |1     x| |c -s    | |sx       | |1     -ox|
+		// |  1   y| |s  c    | |   sy    | |  1   -oy|
+		// |    1  | |     1  | |      1  | |    1    |
+		// |      1| |       1| |        1| |       1 |
+		//   move      rotate      scale       origin
+		e[10] = e[15] = 1.0f;
+		e[0] = sx * c;
+		e[1] = sx * s;
+		e[4] = -sy * s;
+		e[5] = sy * c;
+		e[12] = -ox * e[0] - oy * e[4] + x;
+		e[13] = -ox * e[1] - oy * e[5] + y;
 	}
 	}
 
 
 	void Matrix::translate(float x, float y)
 	void Matrix::translate(float x, float y)

+ 9 - 9
src/common/Matrix.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages
@@ -16,15 +16,15 @@
 * 2. Altered source versions must be plainly marked as such, and must not be
 * 2. Altered source versions must be plainly marked as such, and must not be
 *    misrepresented as being the original software.
 *    misrepresented as being the original software.
 * 3. This notice may not be removed or altered from any source distribution.
 * 3. This notice may not be removed or altered from any source distribution.
-**/
-
+**/
+
 #ifndef LOVE_MATRIX_H
 #ifndef LOVE_MATRIX_H
-#define LOVE_MATRIX_H
-
-// LOVE
-#include "math.h"
-
-namespace love
+#define LOVE_MATRIX_H
+
+// LOVE
+#include "math.h"
+
+namespace love
 {
 {
 	/**
 	/**
 	* This class is the basis for all transformations in LOVE. Althought not
 	* This class is the basis for all transformations in LOVE. Althought not

+ 1 - 1
src/common/MemoryData.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/common/MemoryData.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 18 - 18
src/common/Module.h

@@ -1,21 +1,21 @@
-/**
-* Copyright (c) 2006-2010 LOVE Development Team
-* 
-* This software is provided 'as-is', without any express or implied
-* warranty.  In no event will the authors be held liable for any damages
-* arising from the use of this software.
-* 
-* Permission is granted to anyone to use this software for any purpose,
-* including commercial applications, and to alter it and redistribute it
-* freely, subject to the following restrictions:
-* 
-* 1. The origin of this software must not be misrepresented; you must not
-*    claim that you wrote the original software. If you use this software
-*    in a product, an acknowledgment in the product documentation would be
-*    appreciated but is not required.
-* 2. Altered source versions must be plainly marked as such, and must not be
-*    misrepresented as being the original software.
-* 3. This notice may not be removed or altered from any source distribution.
+/**
+* Copyright (c) 2006-2011 LOVE Development Team
+* 
+* This software is provided 'as-is', without any express or implied
+* warranty.  In no event will the authors be held liable for any damages
+* arising from the use of this software.
+* 
+* Permission is granted to anyone to use this software for any purpose,
+* including commercial applications, and to alter it and redistribute it
+* freely, subject to the following restrictions:
+* 
+* 1. The origin of this software must not be misrepresented; you must not
+*    claim that you wrote the original software. If you use this software
+*    in a product, an acknowledgment in the product documentation would be
+*    appreciated but is not required.
+* 2. Altered source versions must be plainly marked as such, and must not be
+*    misrepresented as being the original software.
+* 3. This notice may not be removed or altered from any source distribution.
 **/
 **/
 
 
 #ifndef LOVE_MODULE_H
 #ifndef LOVE_MODULE_H

+ 18 - 18
src/common/Object.cpp

@@ -1,21 +1,21 @@
-/**
-* Copyright (c) 2006-2010 LOVE Development Team
-*
-* This software is provided 'as-is', without any express or implied
-* warranty.  In no event will the authors be held liable for any damages
-* arising from the use of this software.
-*
-* Permission is granted to anyone to use this software for any purpose,
-* including commercial applications, and to alter it and redistribute it
-* freely, subject to the following restrictions:
-*
-* 1. The origin of this software must not be misrepresented; you must not
-*    claim that you wrote the original software. If you use this software
-*    in a product, an acknowledgment in the product documentation would be
-*    appreciated but is not required.
-* 2. Altered source versions must be plainly marked as such, and must not be
-*    misrepresented as being the original software.
-* 3. This notice may not be removed or altered from any source distribution.
+/**
+* Copyright (c) 2006-2011 LOVE Development Team
+*
+* This software is provided 'as-is', without any express or implied
+* warranty.  In no event will the authors be held liable for any damages
+* arising from the use of this software.
+*
+* Permission is granted to anyone to use this software for any purpose,
+* including commercial applications, and to alter it and redistribute it
+* freely, subject to the following restrictions:
+*
+* 1. The origin of this software must not be misrepresented; you must not
+*    claim that you wrote the original software. If you use this software
+*    in a product, an acknowledgment in the product documentation would be
+*    appreciated but is not required.
+* 2. Altered source versions must be plainly marked as such, and must not be
+*    misrepresented as being the original software.
+* 3. This notice may not be removed or altered from any source distribution.
 **/
 **/
 
 
 // LOVE
 // LOVE

+ 18 - 18
src/common/Object.h

@@ -1,21 +1,21 @@
-/**
-* Copyright (c) 2006-2010 LOVE Development Team
-*
-* This software is provided 'as-is', without any express or implied
-* warranty.  In no event will the authors be held liable for any damages
-* arising from the use of this software.
-*
-* Permission is granted to anyone to use this software for any purpose,
-* including commercial applications, and to alter it and redistribute it
-* freely, subject to the following restrictions:
-*
-* 1. The origin of this software must not be misrepresented; you must not
-*    claim that you wrote the original software. If you use this software
-*    in a product, an acknowledgment in the product documentation would be
-*    appreciated but is not required.
-* 2. Altered source versions must be plainly marked as such, and must not be
-*    misrepresented as being the original software.
-* 3. This notice may not be removed or altered from any source distribution.
+/**
+* Copyright (c) 2006-2011 LOVE Development Team
+*
+* This software is provided 'as-is', without any express or implied
+* warranty.  In no event will the authors be held liable for any damages
+* arising from the use of this software.
+*
+* Permission is granted to anyone to use this software for any purpose,
+* including commercial applications, and to alter it and redistribute it
+* freely, subject to the following restrictions:
+*
+* 1. The origin of this software must not be misrepresented; you must not
+*    claim that you wrote the original software. If you use this software
+*    in a product, an acknowledgment in the product documentation would be
+*    appreciated but is not required.
+* 2. Altered source versions must be plainly marked as such, and must not be
+*    misrepresented as being the original software.
+* 3. This notice may not be removed or altered from any source distribution.
 **/
 **/
 
 
 #ifndef LOVE_OBJECT_H
 #ifndef LOVE_OBJECT_H

+ 1 - 1
src/common/Reference.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 18 - 18
src/common/Reference.h

@@ -1,21 +1,21 @@
-/**
-* Copyright (c) 2006-2010 LOVE Development Team
-* 
-* This software is provided 'as-is', without any express or implied
-* warranty.  In no event will the authors be held liable for any damages
-* arising from the use of this software.
-* 
-* Permission is granted to anyone to use this software for any purpose,
-* including commercial applications, and to alter it and redistribute it
-* freely, subject to the following restrictions:
-* 
-* 1. The origin of this software must not be misrepresented; you must not
-*    claim that you wrote the original software. If you use this software
-*    in a product, an acknowledgment in the product documentation would be
-*    appreciated but is not required.
-* 2. Altered source versions must be plainly marked as such, and must not be
-*    misrepresented as being the original software.
-* 3. This notice may not be removed or altered from any source distribution.
+/**
+* Copyright (c) 2006-2011 LOVE Development Team
+* 
+* This software is provided 'as-is', without any express or implied
+* warranty.  In no event will the authors be held liable for any damages
+* arising from the use of this software.
+* 
+* Permission is granted to anyone to use this software for any purpose,
+* including commercial applications, and to alter it and redistribute it
+* freely, subject to the following restrictions:
+* 
+* 1. The origin of this software must not be misrepresented; you must not
+*    claim that you wrote the original software. If you use this software
+*    in a product, an acknowledgment in the product documentation would be
+*    appreciated but is not required.
+* 2. Altered source versions must be plainly marked as such, and must not be
+*    misrepresented as being the original software.
+* 3. This notice may not be removed or altered from any source distribution.
 **/
 **/
 
 
 #ifndef LOVE_REFERENCE_H
 #ifndef LOVE_REFERENCE_H

+ 1 - 1
src/common/StringMap.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 2 - 2
src/common/Vector.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages
@@ -16,7 +16,7 @@
 * 2. Altered source versions must be plainly marked as such, and must not be
 * 2. Altered source versions must be plainly marked as such, and must not be
 *    misrepresented as being the original software.
 *    misrepresented as being the original software.
 * 3. This notice may not be removed or altered from any source distribution.
 * 3. This notice may not be removed or altered from any source distribution.
-**/
+**/
 
 
 #include "Vector.h"
 #include "Vector.h"
 
 

+ 11 - 11
src/common/Vector.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages
@@ -16,18 +16,18 @@
 * 2. Altered source versions must be plainly marked as such, and must not be
 * 2. Altered source versions must be plainly marked as such, and must not be
 *    misrepresented as being the original software.
 *    misrepresented as being the original software.
 * 3. This notice may not be removed or altered from any source distribution.
 * 3. This notice may not be removed or altered from any source distribution.
-**/
-
+**/
+
 #ifndef LOVE_VECTOR_H
 #ifndef LOVE_VECTOR_H
-#define LOVE_VECTOR_H
-
+#define LOVE_VECTOR_H
+
 // STD
 // STD
-#include <cmath>
-
-// LOVE
-#include "Matrix.h"
-
-namespace love
+#include <cmath>
+
+// LOVE
+#include "Matrix.h"
+
+namespace love
 {
 {
 	/**
 	/**
 	* 2D Vector class.
 	* 2D Vector class.

+ 39 - 39
src/common/b64.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages
@@ -24,11 +24,11 @@ namespace love
 {
 {
 	static const char cd64[]="|$$$}rstuvwxyz{$$$$$$$>?@ABCDEFGHIJKLMNOPQRSTUVW$$$$$$XYZ[\\]^_`abcdefghijklmnopq";
 	static const char cd64[]="|$$$}rstuvwxyz{$$$$$$$>?@ABCDEFGHIJKLMNOPQRSTUVW$$$$$$XYZ[\\]^_`abcdefghijklmnopq";
 
 
-	void b64_decode_block(char in[4], char out[3])
-	{   
-		out[0] = (char)(in[0] << 2 | in[1] >> 4);
-		out[1] = (char)(in[1] << 4 | in[2] >> 2);
-		out[2] = (char)(((in[2] << 6) & 0xc0) | in[3]);
+	void b64_decode_block(char in[4], char out[3])
+	{   
+		out[0] = (char)(in[0] << 2 | in[1] >> 4);
+		out[1] = (char)(in[1] << 4 | in[2] >> 2);
+		out[2] = (char)(((in[2] << 6) & 0xc0) | in[3]);
 	}
 	}
 
 
 	char * b64_decode(const char * src, int slen, int & size)
 	char * b64_decode(const char * src, int slen, int & size)
@@ -38,39 +38,39 @@ namespace love
 		char * dst = new char[size];
 		char * dst = new char[size];
 		char * d = dst;
 		char * d = dst;
 
 
-		char in[4], out[3], v;
-		int i, len, pos = 0;
-
-		while(pos <= slen)
-		{
-			for(len = 0, i = 0; i < 4 && pos <= slen; i++ )
-			{
-				v = 0;
-
-				while(pos <= slen && v == 0 )
-				{
-					v = src[pos++];
-					v = (char)((v < 43 || v > 122) ? 0 : cd64[v - 43]);
-					if(v)
-						v = (char)((v == '$') ? 0 : v - 61);
-				}
-
-				if(pos <= slen)
-				{
-					len++;
-					if(v)
-						in[i] = (char)(v - 1);
-				}
-				else
-					in[i] = 0;
-			}
-
-			if(len) {
-				b64_decode_block(in, out);
-				for(i = 0; i < len - 1; i++)
-					*(d++) = out[i];
-			}
-		}
+		char in[4], out[3], v;
+		int i, len, pos = 0;
+
+		while(pos <= slen)
+		{
+			for(len = 0, i = 0; i < 4 && pos <= slen; i++ )
+			{
+				v = 0;
+
+				while(pos <= slen && v == 0 )
+				{
+					v = src[pos++];
+					v = (char)((v < 43 || v > 122) ? 0 : cd64[v - 43]);
+					if(v)
+						v = (char)((v == '$') ? 0 : v - 61);
+				}
+
+				if(pos <= slen)
+				{
+					len++;
+					if(v)
+						in[i] = (char)(v - 1);
+				}
+				else
+					in[i] = 0;
+			}
+
+			if(len) {
+				b64_decode_block(in, out);
+				for(i = 0; i < len - 1; i++)
+					*(d++) = out[i];
+			}
+		}
 
 
 		return dst;
 		return dst;
 	}
 	}

+ 1 - 1
src/common/b64.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/common/config.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 9 - 9
src/common/math.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages
@@ -16,9 +16,9 @@
 * 2. Altered source versions must be plainly marked as such, and must not be
 * 2. Altered source versions must be plainly marked as such, and must not be
 *    misrepresented as being the original software.
 *    misrepresented as being the original software.
 * 3. This notice may not be removed or altered from any source distribution.
 * 3. This notice may not be removed or altered from any source distribution.
-**/
-
-#ifndef LOVE_MATH_H
+**/
+
+#ifndef LOVE_MATH_H
 #define LOVE_MATH_H
 #define LOVE_MATH_H
 
 
 /* Definitions of useful mathematical constants
 /* Definitions of useful mathematical constants
@@ -58,11 +58,11 @@
 namespace love
 namespace love
 {
 {
 
 
-struct vertex
-{
-	unsigned char r, g, b, a;
-	float x, y;
-	float s, t;
+struct vertex
+{
+	unsigned char r, g, b, a;
+	float x, y;
+	float s, t;
 };
 };
 
 
 } // love
 } // love

+ 2 - 2
src/common/runtime.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 *
 *
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages
@@ -98,7 +98,7 @@ namespace love
 
 
 	bool luax_toboolean(lua_State * L, int idx)
 	bool luax_toboolean(lua_State * L, int idx)
 	{
 	{
-		return (lua_toboolean(L, idx) == 1 ? true : false);
+		return (lua_toboolean(L, idx) != 0);
 	}
 	}
 
 
 	void luax_pushboolean(lua_State * L, bool b)
 	void luax_pushboolean(lua_State * L, bool b)

+ 1 - 1
src/common/runtime.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 *
 *
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/common/types.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 *
 *
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/common/utf8.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/common/utf8.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/common/version.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/common/wrap_Data.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/common/wrap_Data.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/libraries/luasocket/luasocket.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 2 - 2
src/libraries/luasocket/luasocket.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages
@@ -16,7 +16,7 @@
 * 2. Altered source versions must be plainly marked as such, and must not be
 * 2. Altered source versions must be plainly marked as such, and must not be
 *    misrepresented as being the original software.
 *    misrepresented as being the original software.
 * 3. This notice may not be removed or altered from any source distribution.
 * 3. This notice may not be removed or altered from any source distribution.
-**/
+**/
 
 
 #ifndef LOVE_LUASOCKET_LUASOCKET_H
 #ifndef LOVE_LUASOCKET_LUASOCKET_H
 #define LOVE_LUASOCKET_LUASOCKET_H
 #define LOVE_LUASOCKET_LUASOCKET_H

+ 1 - 1
src/love.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 *
 *
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/modules/audio/Audio.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 27 - 27
src/modules/audio/Source.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 *
 *
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages
@@ -16,40 +16,40 @@
 * 2. Altered source versions must be plainly marked as such, and must not be
 * 2. Altered source versions must be plainly marked as such, and must not be
 *    misrepresented as being the original software.
 *    misrepresented as being the original software.
 * 3. This notice may not be removed or altered from any source distribution.
 * 3. This notice may not be removed or altered from any source distribution.
-**/
-
-#include "Source.h"
-
-namespace love
-{
-namespace audio
-{
-	Source::Source(Type type)
-		: type(type)
-	{
-	}
-
-	Source::~Source()
-	{
-	}
-
+**/
+
+#include "Source.h"
+
+namespace love
+{
+namespace audio
+{
+	Source::Source(Type type)
+		: type(type)
+	{
+	}
+
+	Source::~Source()
+	{
+	}
+
 	bool Source::getConstant(const char * in, Type & out)
 	bool Source::getConstant(const char * in, Type & out)
 	{
 	{
 		return types.find(in, out);
 		return types.find(in, out);
 	}
 	}
 
 
-	bool Source::getConstant(Type in, const char *& out)
-	{
-		return types.find(in, out);
-	}
-
+	bool Source::getConstant(Type in, const char *& out)
+	{
+		return types.find(in, out);
+	}
+
 	StringMap<Source::Type, Source::TYPE_MAX_ENUM>::Entry Source::typeEntries[] =
 	StringMap<Source::Type, Source::TYPE_MAX_ENUM>::Entry Source::typeEntries[] =
 	{
 	{
 		{"static", Source::TYPE_STATIC},
 		{"static", Source::TYPE_STATIC},
 		{"stream", Source::TYPE_STREAM},
 		{"stream", Source::TYPE_STREAM},
 	};
 	};
 
 
-	StringMap<Source::Type, Source::TYPE_MAX_ENUM> Source::types(Source::typeEntries, sizeof(Source::typeEntries));
-
-} // audio
-} // love
+	StringMap<Source::Type, Source::TYPE_MAX_ENUM> Source::types(Source::typeEntries, sizeof(Source::typeEntries));
+
+} // audio
+} // love

+ 3 - 3
src/modules/audio/Source.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 *
 *
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages
@@ -16,8 +16,8 @@
 * 2. Altered source versions must be plainly marked as such, and must not be
 * 2. Altered source versions must be plainly marked as such, and must not be
 *    misrepresented as being the original software.
 *    misrepresented as being the original software.
 * 3. This notice may not be removed or altered from any source distribution.
 * 3. This notice may not be removed or altered from any source distribution.
-**/
-
+**/
+
 #ifndef LOVE_AUDIO_SOURCE_H
 #ifndef LOVE_AUDIO_SOURCE_H
 #define LOVE_AUDIO_SOURCE_H
 #define LOVE_AUDIO_SOURCE_H
 
 

+ 1 - 1
src/modules/audio/null/Audio.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/modules/audio/null/Audio.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/modules/audio/null/Source.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 *
 *
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 4 - 4
src/modules/audio/null/Source.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 *
 *
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages
@@ -16,8 +16,8 @@
 * 2. Altered source versions must be plainly marked as such, and must not be
 * 2. Altered source versions must be plainly marked as such, and must not be
 *    misrepresented as being the original software.
 *    misrepresented as being the original software.
 * 3. This notice may not be removed or altered from any source distribution.
 * 3. This notice may not be removed or altered from any source distribution.
-**/
-
+**/
+
 #ifndef LOVE_AUDIO_NULL_SOURCE_H
 #ifndef LOVE_AUDIO_NULL_SOURCE_H
 #define LOVE_AUDIO_NULL_SOURCE_H
 #define LOVE_AUDIO_NULL_SOURCE_H
 
 
@@ -62,7 +62,7 @@ namespace null
 		virtual void setVelocity(float * v);
 		virtual void setVelocity(float * v);
 		virtual void getVelocity(float * v) const;
 		virtual void getVelocity(float * v) const;
 		virtual void setDirection(float * v);
 		virtual void setDirection(float * v);
-		virtual void getDirection(float * v) const;
+		virtual void getDirection(float * v) const;
 		void setLooping(bool looping);
 		void setLooping(bool looping);
 		bool isLooping() const;
 		bool isLooping() const;
 		bool isStatic() const;
 		bool isStatic() const;

+ 1 - 1
src/modules/audio/openal/Audio.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/modules/audio/openal/Audio.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 22 - 22
src/modules/audio/openal/Pool.cpp

@@ -1,32 +1,32 @@
-/**
-* Copyright (c) 2006-2010 LOVE Development Team
-*
-* This software is provided 'as-is', without any express or implied
-* warranty.  In no event will the authors be held liable for any damages
-* arising from the use of this software.
-*
-* Permission is granted to anyone to use this software for any purpose,
-* including commercial applications, and to alter it and redistribute it
-* freely, subject to the following restrictions:
-*
-* 1. The origin of this software must not be misrepresented; you must not
-*    claim that you wrote the original software. If you use this software
-*    in a product, an acknowledgment in the product documentation would be
-*    appreciated but is not required.
-* 2. Altered source versions must be plainly marked as such, and must not be
-*    misrepresented as being the original software.
-* 3. This notice may not be removed or altered from any source distribution.
+/**
+* Copyright (c) 2006-2011 LOVE Development Team
+*
+* This software is provided 'as-is', without any express or implied
+* warranty.  In no event will the authors be held liable for any damages
+* arising from the use of this software.
+*
+* Permission is granted to anyone to use this software for any purpose,
+* including commercial applications, and to alter it and redistribute it
+* freely, subject to the following restrictions:
+*
+* 1. The origin of this software must not be misrepresented; you must not
+*    claim that you wrote the original software. If you use this software
+*    in a product, an acknowledgment in the product documentation would be
+*    appreciated but is not required.
+* 2. Altered source versions must be plainly marked as such, and must not be
+*    misrepresented as being the original software.
+* 3. This notice may not be removed or altered from any source distribution.
 **/
 **/
 
 
 #include "Pool.h"
 #include "Pool.h"
 
 
 #include "Source.h"
 #include "Source.h"
 
 
-#define MUTEX_ASSERT(fn, sval) \
-	if(fn != sval) \
-	{ \
+#define MUTEX_ASSERT(fn, sval) \
+	if(fn != sval) \
+	{ \
 		std::cout << "Mutex lock/unlock failure. " << SDL_GetError() << std::endl; \
 		std::cout << "Mutex lock/unlock failure. " << SDL_GetError() << std::endl; \
-		exit(-1); \
+		exit(-1); \
 	} \
 	} \
 
 
 #define LOCK(m) MUTEX_ASSERT(SDL_LockMutex(m), 0)
 #define LOCK(m) MUTEX_ASSERT(SDL_LockMutex(m), 0)

+ 1 - 1
src/modules/audio/openal/Pool.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 3 - 2
src/modules/audio/openal/Source.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 *
 *
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages
@@ -82,7 +82,8 @@ namespace openal
 
 
 	void Source::stop()
 	void Source::stop()
 	{
 	{
-		pool->stop(this);
+		if (!isStopped())
+			pool->stop(this);
 	}
 	}
 
 
 	void Source::pause()
 	void Source::pause()

+ 20 - 20
src/modules/audio/openal/Source.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 *
 *
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages
@@ -70,27 +70,27 @@ namespace openal
 		Source(Pool * pool, love::sound::Decoder * decoder);
 		Source(Pool * pool, love::sound::Decoder * decoder);
 		virtual ~Source();
 		virtual ~Source();
 
 
-		virtual love::audio::Source * copy();
-		virtual void play();
-		virtual void stop();
-		virtual void pause();
-		virtual void resume();
-		virtual void rewind();
+		virtual love::audio::Source * copy();
+		virtual void play();
+		virtual void stop();
+		virtual void pause();
+		virtual void resume();
+		virtual void rewind();
 		virtual bool isStopped() const;
 		virtual bool isStopped() const;
-		virtual bool isPaused() const;
-		virtual bool isFinished() const;
-		virtual void update();
-		virtual void setPitch(float pitch);
-		virtual float getPitch() const;
-		virtual void setVolume(float volume);
-		virtual float getVolume() const;
-		virtual void setPosition(float * v);
-		virtual void getPosition(float * v) const;
-		virtual void setVelocity(float * v);
-		virtual void getVelocity(float * v) const;
-		virtual void setDirection(float * v);
+		virtual bool isPaused() const;
+		virtual bool isFinished() const;
+		virtual void update();
+		virtual void setPitch(float pitch);
+		virtual float getPitch() const;
+		virtual void setVolume(float volume);
+		virtual float getVolume() const;
+		virtual void setPosition(float * v);
+		virtual void getPosition(float * v) const;
+		virtual void setVelocity(float * v);
+		virtual void getVelocity(float * v) const;
+		virtual void setDirection(float * v);
 		virtual void getDirection(float * v) const;
 		virtual void getDirection(float * v) const;
-		void setLooping(bool looping);
+		void setLooping(bool looping);
 		bool isLooping() const;
 		bool isLooping() const;
 		bool isStatic() const;
 		bool isStatic() const;
 
 

+ 1 - 1
src/modules/audio/wrap_Audio.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 *
 *
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/modules/audio/wrap_Audio.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/modules/audio/wrap_Source.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 *
 *
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/modules/audio/wrap_Source.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 *
 *
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 18 - 18
src/modules/event/Event.cpp

@@ -1,21 +1,21 @@
-/**
-* Copyright (c) 2006-2010 LOVE Development Team
-*
-* This software is provided 'as-is', without any express or implied
-* warranty.  In no event will the authors be held liable for any damages
-* arising from the use of this software.
-*
-* Permission is granted to anyone to use this software for any purpose,
-* including commercial applications, and to alter it and redistribute it
-* freely, subject to the following restrictions:
-*
-* 1. The origin of this software must not be misrepresented; you must not
-*    claim that you wrote the original software. If you use this software
-*    in a product, an acknowledgment in the product documentation would be
-*    appreciated but is not required.
-* 2. Altered source versions must be plainly marked as such, and must not be
-*    misrepresented as being the original software.
-* 3. This notice may not be removed or altered from any source distribution.
+/**
+* Copyright (c) 2006-2011 LOVE Development Team
+*
+* This software is provided 'as-is', without any express or implied
+* warranty.  In no event will the authors be held liable for any damages
+* arising from the use of this software.
+*
+* Permission is granted to anyone to use this software for any purpose,
+* including commercial applications, and to alter it and redistribute it
+* freely, subject to the following restrictions:
+*
+* 1. The origin of this software must not be misrepresented; you must not
+*    claim that you wrote the original software. If you use this software
+*    in a product, an acknowledgment in the product documentation would be
+*    appreciated but is not required.
+* 2. Altered source versions must be plainly marked as such, and must not be
+*    misrepresented as being the original software.
+* 3. This notice may not be removed or altered from any source distribution.
 **/
 **/
 
 
 #include "Event.h"
 #include "Event.h"

+ 18 - 18
src/modules/event/Event.h

@@ -1,21 +1,21 @@
-/**
-* Copyright (c) 2006-2010 LOVE Development Team
-*
-* This software is provided 'as-is', without any express or implied
-* warranty.  In no event will the authors be held liable for any damages
-* arising from the use of this software.
-*
-* Permission is granted to anyone to use this software for any purpose,
-* including commercial applications, and to alter it and redistribute it
-* freely, subject to the following restrictions:
-*
-* 1. The origin of this software must not be misrepresented; you must not
-*    claim that you wrote the original software. If you use this software
-*    in a product, an acknowledgment in the product documentation would be
-*    appreciated but is not required.
-* 2. Altered source versions must be plainly marked as such, and must not be
-*    misrepresented as being the original software.
-* 3. This notice may not be removed or altered from any source distribution.
+/**
+* Copyright (c) 2006-2011 LOVE Development Team
+*
+* This software is provided 'as-is', without any express or implied
+* warranty.  In no event will the authors be held liable for any damages
+* arising from the use of this software.
+*
+* Permission is granted to anyone to use this software for any purpose,
+* including commercial applications, and to alter it and redistribute it
+* freely, subject to the following restrictions:
+*
+* 1. The origin of this software must not be misrepresented; you must not
+*    claim that you wrote the original software. If you use this software
+*    in a product, an acknowledgment in the product documentation would be
+*    appreciated but is not required.
+* 2. Altered source versions must be plainly marked as such, and must not be
+*    misrepresented as being the original software.
+* 3. This notice may not be removed or altered from any source distribution.
 **/
 **/
 
 
 #ifndef LOVE_EVENT_EVENT_H
 #ifndef LOVE_EVENT_EVENT_H

+ 2 - 2
src/modules/event/sdl/Event.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 *
 *
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages
@@ -99,7 +99,7 @@ namespace sdl
 		case SDL_ACTIVEEVENT:
 		case SDL_ACTIVEEVENT:
 			if (e.active.state & SDL_APPINPUTFOCUS) {
 			if (e.active.state & SDL_APPINPUTFOCUS) {
 				m.type = Event::TYPE_FOCUS;
 				m.type = Event::TYPE_FOCUS;
-				m.focus.f = e.active.gain;
+				m.focus.f = (e.active.gain != 0);
 				return true;
 				return true;
 			} else break;
 			} else break;
 		case SDL_QUIT:
 		case SDL_QUIT:

+ 28 - 28
src/modules/event/sdl/Event.h

@@ -1,21 +1,21 @@
-/**
-* Copyright (c) 2006-2010 LOVE Development Team
-* 
-* This software is provided 'as-is', without any express or implied
-* warranty.  In no event will the authors be held liable for any damages
-* arising from the use of this software.
-* 
-* Permission is granted to anyone to use this software for any purpose,
-* including commercial applications, and to alter it and redistribute it
-* freely, subject to the following restrictions:
-* 
-* 1. The origin of this software must not be misrepresented; you must not
-*    claim that you wrote the original software. If you use this software
-*    in a product, an acknowledgment in the product documentation would be
-*    appreciated but is not required.
-* 2. Altered source versions must be plainly marked as such, and must not be
-*    misrepresented as being the original software.
-* 3. This notice may not be removed or altered from any source distribution.
+/**
+* Copyright (c) 2006-2011 LOVE Development Team
+* 
+* This software is provided 'as-is', without any express or implied
+* warranty.  In no event will the authors be held liable for any damages
+* arising from the use of this software.
+* 
+* Permission is granted to anyone to use this software for any purpose,
+* including commercial applications, and to alter it and redistribute it
+* freely, subject to the following restrictions:
+* 
+* 1. The origin of this software must not be misrepresented; you must not
+*    claim that you wrote the original software. If you use this software
+*    in a product, an acknowledgment in the product documentation would be
+*    appreciated but is not required.
+* 2. Altered source versions must be plainly marked as such, and must not be
+*    misrepresented as being the original software.
+* 3. This notice may not be removed or altered from any source distribution.
 **/
 **/
 
 
 #ifndef LOVE_EVENT_SDL_EVENT_H
 #ifndef LOVE_EVENT_SDL_EVENT_H
@@ -26,7 +26,7 @@
 #include <common/runtime.h>
 #include <common/runtime.h>
 #include <common/EnumMap.h>
 #include <common/EnumMap.h>
 
 
-// SDL
+// SDL
 #include <SDL.h>
 #include <SDL.h>
 
 
 namespace love
 namespace love
@@ -64,15 +64,15 @@ namespace sdl
 		* the screen and game state only needs updating when the user interacts with
 		* the screen and game state only needs updating when the user interacts with
 		* the window.
 		* the window.
 		**/
 		**/
-		bool wait(Message & message);
-
-		/**
-		* Push a message onto the event queue.
-		* 
-		* @param message The message to push onto the queue.
-		* @return True on success, false if the queue was full. 
-		**/
-		bool push(Message & message);
+		bool wait(Message & message);
+
+		/**
+		* Push a message onto the event queue.
+		* 
+		* @param message The message to push onto the queue.
+		* @return True on success, false if the queue was full. 
+		**/
+		bool push(Message & message);
 
 
 	private:
 	private:
 
 

+ 2 - 2
src/modules/event/sdl/wrap_Event.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 *
 *
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages
@@ -65,7 +65,7 @@ namespace sdl
 			msg.joystick.button = luaL_checkint(L, 3);
 			msg.joystick.button = luaL_checkint(L, 3);
 			return true;
 			return true;
 		case Event::TYPE_FOCUS:
 		case Event::TYPE_FOCUS:
-			msg.focus.f = lua_toboolean(L, 2);
+			msg.focus.f = luax_toboolean(L, 2);
 			return true;
 			return true;
 		case Event::TYPE_QUIT:
 		case Event::TYPE_QUIT:
 			return true;
 			return true;

+ 1 - 1
src/modules/event/sdl/wrap_Event.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 20 - 20
src/modules/filesystem/File.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages
@@ -26,27 +26,27 @@ namespace filesystem
 {
 {
 	File::~File()
 	File::~File()
 	{
 	{
-	}
-
-	bool File::getConstant(const char * in, Mode & out)
-	{
-		return modes.find(in, out);
-	}
-
-	bool File::getConstant(Mode in, const char *& out)
-	{
-		return modes.find(in, out);
-	}
-
-	StringMap<File::Mode, File::MODE_MAX_ENUM>::Entry File::modeEntries[] = 
-	{
-		{"c", File::CLOSED},
+	}
+
+	bool File::getConstant(const char * in, Mode & out)
+	{
+		return modes.find(in, out);
+	}
+
+	bool File::getConstant(Mode in, const char *& out)
+	{
+		return modes.find(in, out);
+	}
+
+	StringMap<File::Mode, File::MODE_MAX_ENUM>::Entry File::modeEntries[] = 
+	{
+		{"c", File::CLOSED},
 		{"r", File::READ},
 		{"r", File::READ},
 		{"w", File::WRITE},
 		{"w", File::WRITE},
-		{"a", File::APPEND},
-	};
-
-	StringMap<File::Mode, File::MODE_MAX_ENUM> File::modes(File::modeEntries, sizeof(File::modeEntries));
+		{"a", File::APPEND},
+	};
+
+	StringMap<File::Mode, File::MODE_MAX_ENUM> File::modes(File::modeEntries, sizeof(File::modeEntries));
 
 
 } // filesystem
 } // filesystem
 } // love
 } // love

+ 7 - 7
src/modules/filesystem/File.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages
@@ -160,12 +160,12 @@ namespace filesystem
 		**/
 		**/
 		virtual std::string getExtension() const = 0;
 		virtual std::string getExtension() const = 0;
 
 
-		static bool getConstant(const char * in, Mode & out);
-		static bool getConstant(Mode in, const char *& out);
-
-	private:
-
-		static StringMap<Mode, MODE_MAX_ENUM>::Entry modeEntries[];
+		static bool getConstant(const char * in, Mode & out);
+		static bool getConstant(Mode in, const char *& out);
+
+	private:
+
+		static StringMap<Mode, MODE_MAX_ENUM>::Entry modeEntries[];
 		static StringMap<Mode, MODE_MAX_ENUM> modes;
 		static StringMap<Mode, MODE_MAX_ENUM> modes;
 
 
 	}; // File
 	}; // File

+ 15 - 15
src/modules/filesystem/FileData.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages
@@ -59,22 +59,22 @@ namespace filesystem
 		return extension;
 		return extension;
 	}
 	}
 
 
-	bool FileData::getConstant(const char * in, Decoder & out)
-	{
-		return decoders.find(in, out);
-	}
-
-	bool FileData::getConstant(Decoder in, const char *& out)
-	{
-		return decoders.find(in, out);
+	bool FileData::getConstant(const char * in, Decoder & out)
+	{
+		return decoders.find(in, out);
+	}
+
+	bool FileData::getConstant(Decoder in, const char *& out)
+	{
+		return decoders.find(in, out);
 	}
 	}
 
 
-	StringMap<FileData::Decoder, FileData::DECODE_MAX_ENUM>::Entry FileData::decoderEntries[] = 
-	{
-		{"file", FileData::FILE},
-		{"base64", FileData::BASE64},
-	};
-
+	StringMap<FileData::Decoder, FileData::DECODE_MAX_ENUM>::Entry FileData::decoderEntries[] = 
+	{
+		{"file", FileData::FILE},
+		{"base64", FileData::BASE64},
+	};
+
 	StringMap<FileData::Decoder, FileData::DECODE_MAX_ENUM> FileData::decoders(FileData::decoderEntries, sizeof(FileData::decoderEntries));
 	StringMap<FileData::Decoder, FileData::DECODE_MAX_ENUM> FileData::decoders(FileData::decoderEntries, sizeof(FileData::decoderEntries));
 
 
 } // filesystem
 } // filesystem

+ 3 - 3
src/modules/filesystem/FileData.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages
@@ -66,12 +66,12 @@ namespace filesystem
 		const std::string & getFilename() const;
 		const std::string & getFilename() const;
 		const std::string & getExtension() const;
 		const std::string & getExtension() const;
 
 
-		static bool getConstant(const char * in, Decoder & out);
+		static bool getConstant(const char * in, Decoder & out);
 		static bool getConstant(Decoder in, const char *& out);
 		static bool getConstant(Decoder in, const char *& out);
 
 
 	private:
 	private:
 
 
-		static StringMap<Decoder, DECODE_MAX_ENUM>::Entry decoderEntries[];
+		static StringMap<Decoder, DECODE_MAX_ENUM>::Entry decoderEntries[];
 		static StringMap<Decoder, DECODE_MAX_ENUM> decoders;
 		static StringMap<Decoder, DECODE_MAX_ENUM> decoders;
 
 
 	}; // FileData
 	}; // FileData

+ 1 - 1
src/modules/filesystem/physfs/File.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/modules/filesystem/physfs/File.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 15 - 1
src/modules/filesystem/physfs/Filesystem.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 *
 *
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages
@@ -557,6 +557,20 @@ namespace physfs
 		}
 		}
 	}
 	}
 
 
+	int Filesystem::getLastModified(lua_State * L)
+	{
+		const char * filename = luaL_checkstring(L, 1);
+		PHYSFS_sint64 time = PHYSFS_getLastModTime(filename);
+		if (time == -1)
+		{
+			lua_pushnil(L);
+			lua_pushstring(L, "Could not determine file modification date.");
+			return 2;
+		}
+		lua_pushnumber(L, static_cast<lua_Number>(time));
+		return 1;
+	}
+
 } // physfs
 } // physfs
 } // filesystem
 } // filesystem
 } // love
 } // love

+ 3 - 1
src/modules/filesystem/physfs/Filesystem.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 *
 *
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages
@@ -278,6 +278,8 @@ namespace physfs
 		**/
 		**/
 		int load(lua_State * L);
 		int load(lua_State * L);
 
 
+		int getLastModified(lua_State * L);
+
 	}; // Filesystem
 	}; // Filesystem
 
 
 } // physfs
 } // physfs

+ 1 - 1
src/modules/filesystem/physfs/wrap_File.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/modules/filesystem/physfs/wrap_File.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/modules/filesystem/physfs/wrap_FileData.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/modules/filesystem/physfs/wrap_FileData.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 7 - 1
src/modules/filesystem/physfs/wrap_Filesystem.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 *
 *
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages
@@ -221,6 +221,11 @@ namespace physfs
 		return instance->load(L);
 		return instance->load(L);
 	}
 	}
 
 
+	int w_getLastModified(lua_State * L)
+	{
+		return instance->getLastModified(L);
+	}
+
 	int loader(lua_State * L)
 	int loader(lua_State * L)
 	{
 	{
 		const char * filename = lua_tostring(L, -1);
 		const char * filename = lua_tostring(L, -1);
@@ -297,6 +302,7 @@ namespace physfs
 		{ "enumerate",  w_enumerate },
 		{ "enumerate",  w_enumerate },
 		{ "lines",  w_lines },
 		{ "lines",  w_lines },
 		{ "load",  w_load },
 		{ "load",  w_load },
+		{ "getLastModified", w_getLastModified },
 		{ "newFileData", w_newFileData },
 		{ "newFileData", w_newFileData },
 		{ 0, 0 }
 		{ 0, 0 }
 	};
 	};

+ 2 - 1
src/modules/filesystem/physfs/wrap_Filesystem.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages
@@ -57,6 +57,7 @@ namespace physfs
 	int w_enumerate(lua_State * L);
 	int w_enumerate(lua_State * L);
 	int w_lines(lua_State * L);
 	int w_lines(lua_State * L);
 	int w_load(lua_State * L);
 	int w_load(lua_State * L);
+	int w_getLastModified(lua_State * L);
 	int loader(lua_State * L);
 	int loader(lua_State * L);
 	extern "C" LOVE_EXPORT int luaopen_love_filesystem(lua_State * L);
 	extern "C" LOVE_EXPORT int luaopen_love_filesystem(lua_State * L);
 
 

+ 1 - 1
src/modules/font/Font.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/modules/font/FontData.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 *
 *
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/modules/font/FontData.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/modules/font/GlyphData.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 *
 *
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/modules/font/GlyphData.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/modules/font/ImageRasterizer.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 *
 *
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/modules/font/ImageRasterizer.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 18 - 18
src/modules/font/Rasterizer.cpp

@@ -1,21 +1,21 @@
-/**
-* Copyright (c) 2006-2010 LOVE Development Team
-* 
-* This software is provided 'as-is', without any express or implied
-* warranty.  In no event will the authors be held liable for any damages
-* arising from the use of this software.
-* 
-* Permission is granted to anyone to use this software for any purpose,
-* including commercial applications, and to alter it and redistribute it
-* freely, subject to the following restrictions:
-* 
-* 1. The origin of this software must not be misrepresented; you must not
-*    claim that you wrote the original software. If you use this software
-*    in a product, an acknowledgment in the product documentation would be
-*    appreciated but is not required.
-* 2. Altered source versions must be plainly marked as such, and must not be
-*    misrepresented as being the original software.
-* 3. This notice may not be removed or altered from any source distribution.
+/**
+* Copyright (c) 2006-2011 LOVE Development Team
+* 
+* This software is provided 'as-is', without any express or implied
+* warranty.  In no event will the authors be held liable for any damages
+* arising from the use of this software.
+* 
+* Permission is granted to anyone to use this software for any purpose,
+* including commercial applications, and to alter it and redistribute it
+* freely, subject to the following restrictions:
+* 
+* 1. The origin of this software must not be misrepresented; you must not
+*    claim that you wrote the original software. If you use this software
+*    in a product, an acknowledgment in the product documentation would be
+*    appreciated but is not required.
+* 2. Altered source versions must be plainly marked as such, and must not be
+*    misrepresented as being the original software.
+* 3. This notice may not be removed or altered from any source distribution.
 **/
 **/
 
 
 // LOVE
 // LOVE

+ 1 - 1
src/modules/font/Rasterizer.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 2 - 2
src/modules/font/freetype/Font.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages
@@ -50,7 +50,7 @@ namespace freetype
 		int length = glyphs.size();
 		int length = glyphs.size();
 		unsigned short * g = new unsigned short[length];
 		unsigned short * g = new unsigned short[length];
 		for (int i = 0; i < length; i++) {
 		for (int i = 0; i < length; i++) {
-			g[i] = glyphs[i];
+			g[i] = (unsigned char)glyphs[i];
 		}
 		}
 		Rasterizer * r = newRasterizer(data, g, length);
 		Rasterizer * r = newRasterizer(data, g, length);
 		delete [] g;
 		delete [] g;

+ 1 - 1
src/modules/font/freetype/Font.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/modules/font/freetype/TrueTypeRasterizer.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/modules/font/freetype/TrueTypeRasterizer.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/modules/font/freetype/wrap_Font.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 *
 *
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/modules/font/freetype/wrap_Font.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/modules/font/wrap_FontData.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/modules/font/wrap_FontData.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/modules/font/wrap_GlyphData.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/modules/font/wrap_GlyphData.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/modules/font/wrap_Rasterizer.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 1 - 1
src/modules/font/wrap_Rasterizer.h

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 16 - 16
src/modules/graphics/Drawable.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 * 
 * 
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages
@@ -16,18 +16,18 @@
 * 2. Altered source versions must be plainly marked as such, and must not be
 * 2. Altered source versions must be plainly marked as such, and must not be
 *    misrepresented as being the original software.
 *    misrepresented as being the original software.
 * 3. This notice may not be removed or altered from any source distribution.
 * 3. This notice may not be removed or altered from any source distribution.
-**/
-
-#include "Drawable.h"
-
-namespace love
-{
-namespace graphics
-{
-
-	Drawable::~Drawable()
-	{
-	}
-
-} // graphics
-} // love
+**/
+
+#include "Drawable.h"
+
+namespace love
+{
+namespace graphics
+{
+
+	Drawable::~Drawable()
+	{
+	}
+
+} // graphics
+} // love

+ 18 - 18
src/modules/graphics/Drawable.h

@@ -1,21 +1,21 @@
-/**
-* Copyright (c) 2006-2010 LOVE Development Team
-* 
-* This software is provided 'as-is', without any express or implied
-* warranty.  In no event will the authors be held liable for any damages
-* arising from the use of this software.
-* 
-* Permission is granted to anyone to use this software for any purpose,
-* including commercial applications, and to alter it and redistribute it
-* freely, subject to the following restrictions:
-* 
-* 1. The origin of this software must not be misrepresented; you must not
-*    claim that you wrote the original software. If you use this software
-*    in a product, an acknowledgment in the product documentation would be
-*    appreciated but is not required.
-* 2. Altered source versions must be plainly marked as such, and must not be
-*    misrepresented as being the original software.
-* 3. This notice may not be removed or altered from any source distribution.
+/**
+* Copyright (c) 2006-2011 LOVE Development Team
+* 
+* This software is provided 'as-is', without any express or implied
+* warranty.  In no event will the authors be held liable for any damages
+* arising from the use of this software.
+* 
+* Permission is granted to anyone to use this software for any purpose,
+* including commercial applications, and to alter it and redistribute it
+* freely, subject to the following restrictions:
+* 
+* 1. The origin of this software must not be misrepresented; you must not
+*    claim that you wrote the original software. If you use this software
+*    in a product, an acknowledgment in the product documentation would be
+*    appreciated but is not required.
+* 2. Altered source versions must be plainly marked as such, and must not be
+*    misrepresented as being the original software.
+* 3. This notice may not be removed or altered from any source distribution.
 **/
 **/
 
 
 #ifndef LOVE_GRAPHICS_DRAWABLE_H
 #ifndef LOVE_GRAPHICS_DRAWABLE_H

+ 1 - 1
src/modules/graphics/Graphics.cpp

@@ -1,5 +1,5 @@
 /**
 /**
-* Copyright (c) 2006-2010 LOVE Development Team
+* Copyright (c) 2006-2011 LOVE Development Team
 *
 *
 * This software is provided 'as-is', without any express or implied
 * This software is provided 'as-is', without any express or implied
 * warranty.  In no event will the authors be held liable for any damages
 * warranty.  In no event will the authors be held liable for any damages

+ 18 - 18
src/modules/graphics/Graphics.h

@@ -1,21 +1,21 @@
-/**
-* Copyright (c) 2006-2010 LOVE Development Team
-*
-* This software is provided 'as-is', without any express or implied
-* warranty.  In no event will the authors be held liable for any damages
-* arising from the use of this software.
-*
-* Permission is granted to anyone to use this software for any purpose,
-* including commercial applications, and to alter it and redistribute it
-* freely, subject to the following restrictions:
-*
-* 1. The origin of this software must not be misrepresented; you must not
-*    claim that you wrote the original software. If you use this software
-*    in a product, an acknowledgment in the product documentation would be
-*    appreciated but is not required.
-* 2. Altered source versions must be plainly marked as such, and must not be
-*    misrepresented as being the original software.
-* 3. This notice may not be removed or altered from any source distribution.
+/**
+* Copyright (c) 2006-2011 LOVE Development Team
+*
+* This software is provided 'as-is', without any express or implied
+* warranty.  In no event will the authors be held liable for any damages
+* arising from the use of this software.
+*
+* Permission is granted to anyone to use this software for any purpose,
+* including commercial applications, and to alter it and redistribute it
+* freely, subject to the following restrictions:
+*
+* 1. The origin of this software must not be misrepresented; you must not
+*    claim that you wrote the original software. If you use this software
+*    in a product, an acknowledgment in the product documentation would be
+*    appreciated but is not required.
+* 2. Altered source versions must be plainly marked as such, and must not be
+*    misrepresented as being the original software.
+* 3. This notice may not be removed or altered from any source distribution.
 **/
 **/
 
 
 #ifndef LOVE_GRAPHICS_GRAPHICS_H
 #ifndef LOVE_GRAPHICS_GRAPHICS_H

Some files were not shown because too many files changed in this diff