Advertisement
Guest User

Untitled

a guest
Sep 13th, 2023
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.81 KB | None | 0 0
  1. --- a/libweston/compositor.c
  2. +++ b/libweston/compositor.c
  3. @@ -1127,6 +1127,7 @@ weston_view_set_output(struct weston_view *view, struct weston_output *output)
  4.         }
  5.         view->output = output;
  6.         if (output) {
  7. +               output->width = 1600; /* double the horizontal pixels on the screen */
  8.                 view->output_destroy_listener.notify =
  9.                         notify_view_output_destroy;
  10.                 wl_signal_add(&output->destroy_signal,
  11. @@ -6415,6 +6416,7 @@ weston_output_update_matrix(struct weston_output *output)
  12.                                      output->width, output->height,
  13.                                      output->current_scale);
  14.  
  15. +       weston_matrix_scale(&output->matrix, 0.5, 1, 1);
  16.         weston_matrix_invert(&output->inverse_matrix, &output->matrix);
  17.  }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement