Lines Matching refs:width
16 static int sdl_create_rounded_display_mask(uint16_t width, uint16_t height, uint32_t mask_color, in sdl_create_rounded_display_mask() argument
20 SDL_TEXTUREACCESS_STREAMING, width, height); in sdl_create_rounded_display_mask()
38 float cx = width / 2.0f; in sdl_create_rounded_display_mask()
40 float rx = width / 2.0f; in sdl_create_rounded_display_mask()
46 for (int px = 0; px < width; px++) { in sdl_create_rounded_display_mask()
74 params->width * params->zoom_pct / 100, in sdl_display_init_bottom()
103 SDL_RenderSetLogicalSize(*params->renderer, params->width, params->height); in sdl_display_init_bottom()
107 SDL_TEXTUREACCESS_STATIC, params->width, params->height); in sdl_display_init_bottom()
116 SDL_TEXTUREACCESS_TARGET, params->width, params->height); in sdl_display_init_bottom()
124 SDL_TEXTUREACCESS_STREAMING, params->width, params->height); in sdl_display_init_bottom()
143 for (int x = 0; x < params->width; x++) { in sdl_display_init_bottom()
158 err = sdl_create_rounded_display_mask(params->width, params->height, in sdl_display_init_bottom()
182 rect.w = params->width; in sdl_display_write_bottom()
223 rect.w = params->width; in sdl_display_read_bottom()
238 params->width * 4); in sdl_display_read_bottom()