[vte] widget: Fix drawing area calculation
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: Fix drawing area calculation
- Date: Tue, 15 Dec 2015 19:39:37 +0000 (UTC)
commit 992ad4dcab54fe985dc65579abac9362f23eaafc
Author: Christian Persch <chpe gnome org>
Date: Tue Dec 15 20:38:41 2015 +0100
widget: Fix drawing area calculation
It needs to take into account top *and* bottom padding.
src/vte.cc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 91848ac..16a477f 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -9521,7 +9521,7 @@ VteTerminalPrivate::expand_cairo_region(cairo_region_t *region,
* _vte_terminal_pixel_to_row expects an actual value corresponding
* to the bottom visible pixel, hence the - 1 + 1 magic. */
row_stop = pixel_to_row(MIN(area->height + area->y - m_padding.top + 1,
- allocation.height - m_padding.bottom) - 1) + 1;
+ allocation.height - m_padding.top - m_padding.bottom) - 1) + 1;
if (row_stop <= row) {
return;
}
@@ -9564,7 +9564,7 @@ VteTerminalPrivate::paint_area(GdkRectangle const* area)
* _vte_terminal_pixel_to_row expects an actual value corresponding
* to the bottom visible pixel, hence the - 1 + 1 magic. */
row_stop = pixel_to_row(MIN(area->height + area->y - m_padding.top,
- allocation.height - m_padding.bottom) - 1) + 1;
+ allocation.height - m_padding.top - m_padding.bottom) - 1) + 1;
if (row_stop <= row) {
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]