From 09cf6ea638dd9e86bcb7d155afe42c36b9a8be1f Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 4 Feb 2018 22:09:21 +0100 Subject: [PATCH] infoviewer: force repaint of text fields next try to get rid of font artifacts: * use kill() instead of hide() to force full repaint at next paint() (this is probably not the best way, but works for now) Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/35890ee7c25e5e2e9cfe51ec4acbb20f4c59e605 Author: Stefan Seyfried Date: 2018-02-04 (Sun, 04 Feb 2018) Origin message was: ------------------ infoviewer: force repaint of text fields next try to get rid of font artifacts: * use kill() instead of hide() to force full repaint at next paint() (this is probably not the best way, but works for now) --- src/gui/infoviewer.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index 3bd21fff2..d989a1095 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -1849,7 +1849,7 @@ void CInfoViewer::display_Info(const char *current, const char *next, txt_curr_event = new CComponentsTextTransp(NULL, xStart, CurrInfoY - height, currTimeX - xStart, height); else { if (txt_curr_event->isPainted()) - txt_curr_event->hide(); + txt_curr_event->kill(); txt_curr_event->setDimensionsAll(xStart, CurrInfoY - height, currTimeX - xStart, height); } txt_curr_event->setItemName("txt_curr_event"); @@ -1861,7 +1861,7 @@ void CInfoViewer::display_Info(const char *current, const char *next, txt_curr_start = new CComponentsTextTransp(NULL, InfoX, CurrInfoY - height, info_time_width, height); else { if (txt_curr_start->isPainted()) - txt_curr_start->hide(); + txt_curr_start->kill(); txt_curr_start->setDimensionsAll(InfoX, CurrInfoY - height, info_time_width, height); } txt_curr_start->setItemName("txt_curr_start"); @@ -1874,7 +1874,7 @@ void CInfoViewer::display_Info(const char *current, const char *next, txt_curr_rest = new CComponentsTextTransp(NULL, currTimeX, CurrInfoY - height, currTimeW, height); else { if (txt_curr_rest->isPainted()) - txt_curr_rest->hide(); + txt_curr_rest->kill(); txt_curr_rest->setDimensionsAll(currTimeX, CurrInfoY - height, currTimeW, height); } txt_curr_rest->setItemName("txt_curr_rest"); @@ -1890,7 +1890,7 @@ void CInfoViewer::display_Info(const char *current, const char *next, txt_next_event = new CComponentsTextTransp(NULL, xStart, NextInfoY, nextTimeX - xStart, height); else { if (txt_next_event->isPainted()) - txt_next_event->hide(); + txt_next_event->kill(); txt_next_event->setDimensionsAll(xStart, NextInfoY, nextTimeX - xStart, height); } txt_next_event->setItemName("txt_next_event"); @@ -1902,7 +1902,7 @@ void CInfoViewer::display_Info(const char *current, const char *next, txt_next_start = new CComponentsTextTransp(NULL, InfoX, NextInfoY, info_time_width, height); else { if (txt_next_start->isPainted()) - txt_next_start->hide(); + txt_next_start->kill(); txt_next_start->setDimensionsAll(InfoX, NextInfoY, info_time_width, height); } txt_next_start->setItemName("txt_next_start"); @@ -1915,7 +1915,7 @@ void CInfoViewer::display_Info(const char *current, const char *next, txt_next_in = new CComponentsTextTransp(NULL, nextTimeX, NextInfoY, nextTimeW, height); else { if (txt_next_in->isPainted()) - txt_next_in->hide(); + txt_next_in->kill(); txt_next_in->setDimensionsAll(nextTimeX, NextInfoY, nextTimeW, height); } txt_next_in->setItemName("txt_next_in");