~ruther/CTU-FEE-B0B35APO-Semestral-project

af6b12aafea4a934f77cbb0989b46c9ceab554c2 — František Boháček 3 years ago 412a0ca
fix: cursor render coordinates
1 files changed, 2 insertions(+), 2 deletions(-)

M image-viewer/src/cursor.c
M image-viewer/src/cursor.c => image-viewer/src/cursor.c +2 -2
@@ 49,7 49,7 @@ void cursor_show(cursor_t *cursor, display_t *display) {
  cursor->shown = true;

  uint16_t base_x = cursor->x;
  uint16_t base_y = cursor->x;
  uint16_t base_y = cursor->y;

  uint16_t first_x = base_x - CURSOR_SIZE / 2;
  uint16_t first_y = base_y - CURSOR_SIZE / 2;


@@ 72,7 72,7 @@ void cursor_hide(cursor_t *cursor, display_t *display) {
  }

  uint16_t base_x = cursor->x;
  uint16_t base_y = cursor->x;
  uint16_t base_y = cursor->y;

  uint16_t first_x = base_x - CURSOR_SIZE / 2;
  uint16_t first_y = base_y - CURSOR_SIZE / 2;

Do not follow this link