mirror of https://github.com/encounter/SDL.git
Fixed typo getting the drawable size
This commit is contained in:
parent
063f752e0d
commit
e4af8ce968
|
@ -1019,7 +1019,7 @@ GL_UpdateViewport(SDL_Renderer * renderer)
|
|||
} else {
|
||||
int w, h;
|
||||
|
||||
SDL_GL_GetDrawableSize(renderer, &w, &h);
|
||||
SDL_GL_GetDrawableSize(renderer->window, &w, &h);
|
||||
data->glViewport(renderer->viewport.x, (h - renderer->viewport.y - renderer->viewport.h),
|
||||
renderer->viewport.w, renderer->viewport.h);
|
||||
}
|
||||
|
@ -1057,7 +1057,7 @@ GL_UpdateClipRect(SDL_Renderer * renderer)
|
|||
} else {
|
||||
int w, h;
|
||||
|
||||
SDL_GL_GetDrawableSize(renderer, &w, &h);
|
||||
SDL_GL_GetDrawableSize(renderer->window, &w, &h);
|
||||
data->glScissor(renderer->viewport.x + rect->x, h - renderer->viewport.y - rect->y - rect->h, rect->w, rect->h);
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -672,7 +672,7 @@ GLES_UpdateViewport(SDL_Renderer * renderer)
|
|||
} else {
|
||||
int w, h;
|
||||
|
||||
SDL_GL_GetDrawableSize(renderer, &w, &h);
|
||||
SDL_GL_GetDrawableSize(renderer->window, &w, &h);
|
||||
data->glViewport(renderer->viewport.x, (h - renderer->viewport.y - renderer->viewport.h),
|
||||
renderer->viewport.w, renderer->viewport.h);
|
||||
}
|
||||
|
@ -715,7 +715,7 @@ GLES_UpdateClipRect(SDL_Renderer * renderer)
|
|||
} else {
|
||||
int w, h;
|
||||
|
||||
SDL_GL_GetDrawableSize(renderer, &w, &h);
|
||||
SDL_GL_GetDrawableSize(renderer->window, &w, &h);
|
||||
data->glScissor(renderer->viewport.x + rect->x, h - renderer->viewport.y - rect->y - rect->h, rect->w, rect->h);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue