mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
Switched the camera format to use framerate ratio instead of interval ratio
This is more intuitive for game developers and users. Fixes https://github.com/libsdl-org/SDL/issues/9896
This commit is contained in:
parent
ea8df46575
commit
d7391394d3
10 changed files with 60 additions and 64 deletions
|
|
@ -134,8 +134,8 @@ int SDL_AppInit(void **appstate, int argc, char *argv[])
|
|||
}
|
||||
|
||||
SDL_CameraSpec *pspec = &spec;
|
||||
spec.interval_numerator = 1000;
|
||||
spec.interval_denominator = 1;
|
||||
spec.framerate_numerator = 1000;
|
||||
spec.framerate_denominator = 1;
|
||||
|
||||
camera = SDL_OpenCameraDevice(camera_id, pspec);
|
||||
if (!camera) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue