Commits

Alex Szpakowski  committed 70085d6

Fixed typo

  • Participants
  • Parent commits 98fd974
  • Branches SDL2

Comments (0)

Files changed (2)

File src/common/Reference.cpp

 const char REFERENCE_TABLE_NAME[] = "love-references";
 
 Reference::Reference()
-	: L(0), idx(LUA_REFNIL)
+	: L(0)
+	, idx(LUA_REFNIL)
 {
 }
 
 Reference::Reference(lua_State *L)
-	: L(0), idx(LUA_REFNIL)
+	: L(L)
+	, idx(LUA_REFNIL)
 {
 	ref(L);
 }

File src/modules/window/sdl/Window.cpp

 {
 #ifdef LOVE_MACOSX
 	// SDL 2 minimizes the window at weird times on OSX if this isn't disabled.
-	// TODO: does Linux and/or Windows need this as well (multimonitor)?
+	// TODO: do Linux and/or Windows need this as well (multi-monitor)?
 	SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0");
 #endif
 
 	return true;
 }
 
-bool Window::Window::onWindowResize(int width, int height)
+bool Window::onWindowResize(int width, int height)
 {
 	if (!window)
 		return false;
 {
 	mouseGrabbed = grab;
 	if (window)
-		SDL_SetWindowGrab(window, grab ? SDL_TRUE : SDL_FALSE);
+		SDL_SetWindowGrab(window, (SDL_bool) grab);
 }
 
 bool Window::isMouseGrabbed() const
 {
 	if (window)
-		return SDL_GetWindowGrab(window) == SDL_TRUE;
+		return (bool) SDL_GetWindowGrab(window);
 	else
 		return mouseGrabbed;
 }