mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-04 03:15:59 -04:00
Merge pull request #54 from vladimirgamalian/patch-1
Remove unused variables
This commit is contained in:
commit
f1ca3cf057
@ -65,14 +65,14 @@ Point Window::GetSize() const {
|
||||
}
|
||||
|
||||
int Window::GetWidth() const {
|
||||
int w, h;
|
||||
SDL_GetWindowSize(window_, &w, &h);
|
||||
int w;
|
||||
SDL_GetWindowSize(window_, &w, nullptr);
|
||||
return w;
|
||||
}
|
||||
|
||||
int Window::GetHeight() const {
|
||||
int w, h;
|
||||
SDL_GetWindowSize(window_, &w, &h);
|
||||
int h;
|
||||
SDL_GetWindowSize(window_, nullptr, &h);
|
||||
return h;
|
||||
}
|
||||
|
||||
@ -83,14 +83,14 @@ Point Window::GetDrawableSize() const {
|
||||
}
|
||||
|
||||
int Window::GetDrawableWidth() const {
|
||||
int w, h;
|
||||
SDL_GL_GetDrawableSize(window_, &w, &h);
|
||||
int w;
|
||||
SDL_GL_GetDrawableSize(window_, &w, nullptr);
|
||||
return w;
|
||||
}
|
||||
|
||||
int Window::GetDrawableHeight() const {
|
||||
int w, h;
|
||||
SDL_GL_GetDrawableSize(window_, &w, &h);
|
||||
int h;
|
||||
SDL_GL_GetDrawableSize(window_, nullptr, &h);
|
||||
return h;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user