mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-19 10:22:39 +01:00
Codechange: Creating enum for 'scrollwheel_scrolling' setting
This commit is contained in:
committed by
rubidium42
parent
e8be933ee6
commit
c53ed9fad6
@@ -1790,7 +1790,7 @@ public:
|
||||
|
||||
void OnMouseWheel(int wheel) override
|
||||
{
|
||||
if (_settings_client.gui.scrollwheel_scrolling != 2) {
|
||||
if (_settings_client.gui.scrollwheel_scrolling != SWS_OFF) {
|
||||
const NWidgetBase *wid = this->GetWidget<NWidgetBase>(WID_SM_MAP);
|
||||
int cursor_x = _cursor.pos.x - this->left - wid->pos_x;
|
||||
int cursor_y = _cursor.pos.y - this->top - wid->pos_y;
|
||||
|
||||
Reference in New Issue
Block a user