mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-04-20 03:25:03 +00:00
more logs
This commit is contained in:
parent
482b2defb5
commit
560ec69f3b
1 changed files with 2 additions and 0 deletions
|
@ -615,6 +615,8 @@ screen_convert_to_frame_coords(struct screen *screen, int32_t x, int32_t y) {
|
|||
SDL_GetWindowSize(screen->window, &ww, &wh);
|
||||
SDL_GL_GetDrawableSize(screen->window, &dw, &dh);
|
||||
|
||||
LOGI("window_size = %dx%d, drawable_size = %dx%d", ww, wh, dw, dh);
|
||||
|
||||
// scale (64 bits for intermediate multiplications)
|
||||
x = (int64_t) (x - screen->rect.x) * w * dw / (screen->rect.w * ww);
|
||||
y = (int64_t) (y - screen->rect.y) * h * dh / (screen->rect.h * wh);
|
||||
|
|
Loading…
Add table
Reference in a new issue