mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-30 15:08:31 +00:00
Fixed camera capture on iOS
My phone captured 1920x1080 images even though the highest reported format was higher resolution, so I adjusted testcamera to be able to handle different sized images than expected. Fixes https://github.com/libsdl-org/SDL/issues/9930
This commit is contained in:
@@ -852,6 +852,8 @@ SDL_bool SDL_CameraThreadIterate(SDL_CameraDevice *device)
|
||||
#if DEBUG_CAMERA
|
||||
SDL_Log("CAMERA: Frame is going through without conversion!");
|
||||
#endif
|
||||
output_surface->w = acquired->w;
|
||||
output_surface->h = acquired->h;
|
||||
output_surface->pixels = acquired->pixels;
|
||||
output_surface->pitch = acquired->pitch;
|
||||
} else { // convert/scale into a different surface.
|
||||
|
Reference in New Issue
Block a user