Small code style cleanup

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2017-07-21 21:17:55 -03:00
parent 34ebe18f14
commit 518ed6f524
3 changed files with 5 additions and 7 deletions
+3 -5
View File
@@ -448,7 +448,7 @@ bool Window::setWindow(int width, int height, WindowSettings *settings)
else
{
sdlflags |= SDL_WINDOW_FULLSCREEN;
SDL_DisplayMode mode = {0, width, height, 0, 0};
SDL_DisplayMode mode = {0, width, height, 0, nullptr};
// Fullscreen window creation will bug out if no mode can be used.
if (SDL_GetClosestDisplayMode(f.display, &mode, &mode) == nullptr)
@@ -738,9 +738,7 @@ const char *Window::getDisplayName(int displayindex) const
return name;
}
typedef Window::WindowSize WindowSize;
std::vector<WindowSize> Window::getFullscreenSizes(int displayindex) const
std::vector<Window::WindowSize> Window::getFullscreenSizes(int displayindex) const
{
std::vector<WindowSize> sizes;
@@ -866,7 +864,7 @@ bool Window::setIcon(love::image::ImageData *imgd)
int h = imgd->getHeight();
int pitch = imgd->getWidth() * 4;
SDL_Surface *sdlicon = 0;
SDL_Surface *sdlicon = nullptr;
{
// We don't want another thread modifying the ImageData mid-copy.
+1 -1
View File
@@ -34,7 +34,7 @@ namespace window
namespace sdl
{
class Window : public love::window::Window
class Window final : public love::window::Window
{
public: