Codechange: Use existing widget ids instead of raw numbers.

This commit is contained in:
frosch
2023-09-20 21:25:37 +02:00
committed by frosch
parent e0df937247
commit 39e67b6f4c
2 changed files with 2 additions and 3 deletions

View File

@@ -29,10 +29,9 @@ struct ScreenshotWindow : Window {
void OnClick([[maybe_unused]] Point pt, int widget, [[maybe_unused]] int click_count) override
{
if (widget < 0) return;
ScreenshotType st;
switch (widget) {
default:
default: return;
case WID_SC_TAKE: st = SC_VIEWPORT; break;
case WID_SC_TAKE_ZOOMIN: st = SC_ZOOMEDIN; break;
case WID_SC_TAKE_DEFAULTZOOM: st = SC_DEFAULTZOOM; break;