diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-03-10 13:05:10 -0400 | 
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-03-10 13:05:10 -0400 | 
| commit | 30f9e78cb30178834c420106c9f515c8358c4dbf (patch) | |
| tree | d50d3de81da8e018612675e751ef0408730a4df1 /src/report_popup.h | |
| parent | 79424e86dd7aa28c1b25868d86fa8ebffc801593 (diff) | |
| download | lingo-ap-tracker-30f9e78cb30178834c420106c9f515c8358c4dbf.tar.gz lingo-ap-tracker-30f9e78cb30178834c420106c9f515c8358c4dbf.tar.bz2 lingo-ap-tracker-30f9e78cb30178834c420106c9f515c8358c4dbf.zip | |
Optimize ReportPopup refresh slightly
It no longer resizes the window or vanishes if it is open during a refresh, and instead just redraws the image.
Diffstat (limited to 'src/report_popup.h')
| -rw-r--r-- | src/report_popup.h | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/src/report_popup.h b/src/report_popup.h index 2da9b73..bbb0bef 100644 --- a/src/report_popup.h +++ b/src/report_popup.h | |||
| @@ -15,6 +15,7 @@ class ReportPopup : public wxScrolledCanvas { | |||
| 15 | 15 | ||
| 16 | void Reset(); | 16 | void Reset(); | 
| 17 | 17 | ||
| 18 | void ResetIndicators(); | ||
| 18 | void UpdateIndicators(); | 19 | void UpdateIndicators(); | 
| 19 | 20 | ||
| 20 | private: | 21 | private: | 
| @@ -28,6 +29,9 @@ class ReportPopup : public wxScrolledCanvas { | |||
| 28 | const wxBitmap* unchecked_eye_; | 29 | const wxBitmap* unchecked_eye_; | 
| 29 | const wxBitmap* checked_eye_; | 30 | const wxBitmap* checked_eye_; | 
| 30 | 31 | ||
| 32 | int full_width_ = 0; | ||
| 33 | int full_height_ = 0; | ||
| 34 | |||
| 31 | wxBitmap rendered_; | 35 | wxBitmap rendered_; | 
| 32 | }; | 36 | }; | 
| 33 | 37 | ||
