diff options
| author | George Hazan <ghazan@miranda.im> | 2022-03-01 20:49:24 +0300 |
|---|---|---|
| committer | George Hazan <ghazan@miranda.im> | 2022-03-01 20:49:24 +0300 |
| commit | 7213d3ecea3157b42f82964a4e6b89f241e8462b (patch) | |
| tree | 14a86838a05732a7cc99ffc5b1cd704a25f9ee1c /include | |
| parent | 72bb63681bce02546d8d6adb99c946c3f7f5ea17 (diff) | |
CCtrlSpin: correct processing of negative values
Diffstat (limited to 'include')
| -rw-r--r-- | include/m_gui.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/m_gui.h b/include/m_gui.h index 364a255fe2..ba3590b70d 100644 --- a/include/m_gui.h +++ b/include/m_gui.h @@ -887,18 +887,18 @@ class MIR_CORE_EXPORT CCtrlSpin : public CCtrlData { typedef CCtrlData CSuper; - uint16_t m_wMin, m_wMax, m_wCurr; + int16_t m_wMin, m_wMax, m_wCurr; BOOL OnNotify(int, NMHDR*) override; public: - CCtrlSpin(CDlgBase *dlg, int ctrlId, uint16_t max = 100, uint16_t min = 0); + CCtrlSpin(CDlgBase *dlg, int ctrlId, int16_t max = 100, int16_t min = 0); bool OnApply() override; void OnReset() override; - uint16_t GetPosition(); - void SetPosition(uint16_t pos); + int16_t GetPosition(); + void SetPosition(int16_t pos); }; ///////////////////////////////////////////////////////////////////////////////////////// |
