Home
last modified time | relevance | path

Searched refs:SDL_min (Results 1 – 22 of 22) sorted by relevance

/third_party/flutter/skia/third_party/externals/sdl/src/joystick/dummy/
DSDL_sysjoystick.c108 SDL_memcpy( &guid, name, SDL_min( sizeof(guid), SDL_strlen( name ) ) ); in SDL_SYS_JoystickGetDeviceGUID()
119 SDL_memcpy( &guid, name, SDL_min( sizeof(guid), SDL_strlen( name ) ) ); in SDL_SYS_JoystickGetGUID()
/third_party/flutter/skia/third_party/externals/sdl/src/stdlib/
DSDL_string.c445 size_t len = SDL_min(srclen, maxlen - 1); in SDL_wcslcpy()
476 size_t len = SDL_min(srclen, maxlen - 1); in SDL_strlcpy()
487 size_t bytes = SDL_min(src_bytes, dst_bytes - 1); in SDL_utf8strlcpy()
1331 length += SDL_min(slen, maxlen); in SDL_PrintString()
1409 left = SDL_min(left, 1); in SDL_PrintFloat()
1430 left = SDL_min(left, 1); in SDL_PrintFloat()
1467 left = SDL_min(left, 1); in SDL_PrintFloat()
1647 left = SDL_min(left, 1); in SDL_vsnprintf()
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/psp/
DSDL_sysjoystick.c253 SDL_memcpy( &guid, name, SDL_min( sizeof(guid), SDL_strlen( name ) ) ); in SDL_SYS_JoystickGetDeviceGUID()
263 SDL_memcpy( &guid, name, SDL_min( sizeof(guid), SDL_strlen( name ) ) ); in SDL_SYS_JoystickGetGUID()
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/haiku/
DSDL_haikujoystick.cc256 SDL_memcpy( &guid, name, SDL_min( sizeof(guid), SDL_strlen( name ) ) ); in SDL_SYS_JoystickGetDeviceGUID()
266 SDL_memcpy( &guid, name, SDL_min( sizeof(guid), SDL_strlen( name ) ) ); in SDL_SYS_JoystickGetGUID()
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/emscripten/
DSDL_sysjoystick.c387 SDL_memcpy(&guid, name, SDL_min(sizeof(guid), SDL_strlen(name))); in SDL_SYS_JoystickGetDeviceGUID()
398 SDL_memcpy(&guid, name, SDL_min(sizeof(guid), SDL_strlen(name))); in SDL_SYS_JoystickGetGUID()
/third_party/flutter/skia/third_party/externals/sdl/src/video/wayland/
DSDL_waylandwindow.c60 width = SDL_min(width, window->max_w); in handle_configure()
65 height = SDL_min(height, window->max_h); in handle_configure()
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/windows/
DSDL_mmjoystick.c406 SDL_memcpy( &guid, name, SDL_min( sizeof(guid), SDL_strlen( name ) ) ); in SDL_SYS_JoystickGetDeviceGUID()
416 SDL_memcpy( &guid, name, SDL_min( sizeof(guid), SDL_strlen( name ) ) ); in SDL_SYS_JoystickGetGUID()
/third_party/flutter/skia/third_party/externals/sdl/src/video/windows/
DSDL_windowskeyboard.c533 size_t size = SDL_min((size_t)(len + 1), SDL_arraysize(videodata->ime_readingstring)); in IME_GetReadingString()
778 size_t len = SDL_min(SDL_wcslen(videodata->ime_composition), (size_t)videodata->ime_cursor); in IME_SendEditingEvent()
839 videodata->ime_candpgsize = SDL_min(cand_list->dwPageSize, MAX_CANDLIST); in IME_GetCandidateList()
1010 pgsize = SDL_min(count, idxlist[page + 1]) - pgstart; in UILess_GetCandidateList()
1017 videodata->ime_candpgsize = SDL_min(pgsize, MAX_CANDLIST); in UILess_GetCandidateList()
1417 …const int candcount = SDL_min(SDL_min(MAX_CANDLIST, videodata->ime_candcount), videodata->ime_cand… in IME_RenderCandidateList()
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/iphoneos/
DSDL_sysjoystick.m178 …SDL_memcpy(&device->guid.data, device->name, SDL_min(sizeof(SDL_JoystickGUID), SDL_strlen(device->…
442 accel.x = SDL_min(SDL_max(accel.x, -maxgforce), maxgforce);
443 accel.y = SDL_min(SDL_max(accel.y, -maxgforce), maxgforce);
444 accel.z = SDL_min(SDL_max(accel.z, -maxgforce), maxgforce);
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/bsd/
DSDL_sysjoystick.c626 SDL_memcpy( &guid, name, SDL_min( sizeof(guid), SDL_strlen( name ) ) );
636 SDL_memcpy( &guid, name, SDL_min( sizeof(guid), SDL_strlen( name ) ) );
/third_party/flutter/skia/third_party/externals/sdl/src/
DSDL.c334 num_subsystems = SDL_min(num_subsystems, SDL_MostSignificantBitIndex32(flags) + 1); in SDL_WasInit()
/third_party/flutter/skia/third_party/externals/sdl/src/audio/dsp/
DSDL_dspaudio.c285 const size_t len = SDL_min(sizeof (buf), info.bytes); in DSP_FlushCapture()
/third_party/flutter/skia/third_party/externals/sdl/src/file/
DSDL_rwops.c200 SDL_min(total_need, context->hidden.windowsio.buffer.left); in windows_file_read()
219 read_ahead = SDL_min(total_need, (int) byte_read); in windows_file_read()
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/android/
DSDL_sysjoystick.c258 SDL_memcpy( &guid, name, SDL_min( sizeof(guid), SDL_strlen( name ) ) ); in Android_AddJoystick()
/third_party/flutter/skia/third_party/externals/sdl/src/audio/bsd/
DSDL_bsdaudio.c258 const size_t len = SDL_min(sizeof (buf), remain); in BSDAUDIO_FlushCapture()
/third_party/flutter/skia/third_party/externals/sdl/src/render/
DSDL_render.c178 event->motion.xrel = SDL_min(-1, (int)(event->motion.xrel / renderer->scale.x)); in SDL_RendererEventWatch()
183 event->motion.yrel = SDL_min(-1, (int)(event->motion.yrel / renderer->scale.y)); in SDL_RendererEventWatch()
1519 int minY = SDL_min(points[i].y, points[i+1].y); in RenderDrawLinesWithRects()
1528 int minX = SDL_min(points[i].x, points[i+1].x); in RenderDrawLinesWithRects()
/third_party/flutter/skia/third_party/externals/sdl/include/
DSDL_stdinc.h349 #define SDL_min(x, y) (((x) < (y)) ? (x) : (y)) macro
/third_party/flutter/skia/third_party/externals/sdl/src/audio/
DSDL_audio.c518 datalen = SDL_min(len, SDL_AUDIOBUFFERQUEUE_PACKETLEN - packet->datalen); in queue_audio_to_device()
538 const Uint32 cpy = SDL_min(len, avail); in dequeue_audio_from_device()
/third_party/flutter/skia/third_party/externals/sdl/src/audio/pulseaudio/
DSDL_pulseaudio.c387 const int cpy = SDL_min(buflen, h->capturelen); in PULSEAUDIO_CaptureFromDevice()
/third_party/flutter/skia/third_party/externals/sdl/src/events/
DSDL_mouse.c392 event.button.clicks = (Uint8) SDL_min(clicks, 255);
DSDL_gesture.c327 return SDL_min(f1,f2); in bestDollarDifference()
/third_party/flutter/skia/third_party/externals/sdl/src/video/
DSDL_video.c1998 … SDL_SetWindowSize(window, SDL_min(window->w, window->max_w), SDL_min(window->h, window->max_h)); in SDL_SetWindowMaximumSize()