[five-or-more/arnaudb/gtk3: 19/24] Revert "Replace queue_draw_area()."
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [five-or-more/arnaudb/gtk3: 19/24] Revert "Replace queue_draw_area()."
- Date: Thu, 22 Oct 2020 15:32:55 +0000 (UTC)
commit 800603b3354642608858bf6f21824a30fadfa65b
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Thu Oct 22 17:29:56 2020 +0200
Revert "Replace queue_draw_area()."
This reverts commit 39e642c1aecde2942ad56371a72597256e8a9c3a.
src/view.vala | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/view.vala b/src/view.vala
index a5ff89d..9e9a0b8 100644
--- a/src/view.vala
+++ b/src/view.vala
@@ -143,7 +143,7 @@ private class View : DrawingArea
if (!show_cursor)
{
show_cursor = true;
- // queue_draw_area (keyboard_cursor_x * piece_size, keyboard_cursor_y * piece_size, piece_size,
piece_size);
+ queue_draw_area (keyboard_cursor_x * piece_size, keyboard_cursor_y * piece_size, piece_size,
piece_size);
}
keyboard_cursor_x += x;
@@ -161,9 +161,8 @@ private class View : DrawingArea
if (keyboard_cursor_x == prev_x && keyboard_cursor_y == prev_y)
return;
- // queue_draw_area (prev_x * piece_size, prev_y * piece_size, piece_size, piece_size);
- // queue_draw_area (keyboard_cursor_x * piece_size, keyboard_cursor_y * piece_size, piece_size,
piece_size);
- queue_draw ();
+ queue_draw_area (prev_x * piece_size, prev_y * piece_size, piece_size, piece_size);
+ queue_draw_area (keyboard_cursor_x * piece_size, keyboard_cursor_y * piece_size, piece_size,
piece_size);
}
private void init_keyboard ()
@@ -307,8 +306,7 @@ private class View : DrawingArea
if (show_cursor)
{
show_cursor = false;
- // queue_draw_area (keyboard_cursor_x * piece_size, keyboard_cursor_y * piece_size, piece_size,
piece_size);
- queue_draw ();
+ queue_draw_area (keyboard_cursor_x * piece_size, keyboard_cursor_y * piece_size, piece_size,
piece_size);
}
cell_x = (int)event_x / piece_size;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]