mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
testcamera: fix MSVC build failure due to C4244 warning.
This commit is contained in:
parent
5c84d38822
commit
c2121dd9a2
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ static void PickCameraSpec(SDL_CameraID camera_id, SDL_CameraSpec *spec)
|
|||
if (specs) {
|
||||
int i;
|
||||
|
||||
int max_size = SDL_GetNumberProperty(SDL_GetRendererProperties(state->renderers[0]), SDL_PROP_RENDERER_MAX_TEXTURE_SIZE_NUMBER, 0);
|
||||
int max_size = (int)SDL_GetNumberProperty(SDL_GetRendererProperties(state->renderers[0]), SDL_PROP_RENDERER_MAX_TEXTURE_SIZE_NUMBER, 0);
|
||||
for (i = 0; specs[i]; ++i) {
|
||||
const SDL_CameraSpec *s = specs[i];
|
||||
if (s->width <= max_size && s->height <= max_size) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue