Searched refs:pixel_ratio (Results 1 – 10 of 10) sorted by relevance
200 wdata->pixel_ratio = emscripten_get_device_pixel_ratio(); in Emscripten_CreateWindow()202 wdata->pixel_ratio = 1.0f; in Emscripten_CreateWindow()205 scaled_w = SDL_floor(window->w * wdata->pixel_ratio); in Emscripten_CreateWindow()206 scaled_h = SDL_floor(window->h * wdata->pixel_ratio); in Emscripten_CreateWindow()216 scaled_w = css_w * wdata->pixel_ratio; in Emscripten_CreateWindow()217 scaled_h = css_h * wdata->pixel_ratio; in Emscripten_CreateWindow()225 if (wdata->pixel_ratio != 1.0f) { in Emscripten_CreateWindow()266 data->pixel_ratio = emscripten_get_device_pixel_ratio(); in Emscripten_SetWindowSize()267 emscripten_set_canvas_size(window->w * data->pixel_ratio, window->h * data->pixel_ratio); in Emscripten_SetWindowSize()270 if (!data->external_size && data->pixel_ratio != 1.0f) { in Emscripten_SetWindowSize()
105 *w = window->w * data->pixel_ratio; in SDL_EGL_SwapWindow_impl()109 *h = window->h * data->pixel_ratio; in SDL_EGL_SwapWindow_impl()
41 float pixel_ratio; member
550 window_data->pixel_ratio = emscripten_get_device_pixel_ratio(); in Emscripten_HandleResize()564 emscripten_set_canvas_size(w * window_data->pixel_ratio, h * window_data->pixel_ratio); in Emscripten_HandleResize()567 if (!window_data->external_size && window_data->pixel_ratio != 1.0f) { in Emscripten_HandleResize()
185 event.pixel_ratio = static_cast<double>(GetCurrentDPI()) / base_dpi; in SendWindowMetrics()
203 double pixel_ratio; member
764 metrics.device_pixel_ratio = SAFE_ACCESS(flutter_metrics, pixel_ratio, 1.0); in FlutterEngineSendWindowMetricsEvent()
965 metrics.device_pixel_ratio = SAFE_ACCESS(flutter_metrics, pixel_ratio, 1.0); in FlutterEngineSendWindowMetricsEvent()
137 event.pixel_ratio = std::max(dpi / kDpPerInch, 1.0); in SendWindowMetrics()
248 .pixel_ratio = pixelRatio,