Changeset - r27956:8b5b435dfe3e
[Not reviewed]
master
0 2 0
frosch - 15 months ago 2023-09-20 19:25:37
frosch@openttd.org
Codechange: Use existing widget ids instead of raw numbers.
2 files changed with 2 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/bootstrap_gui.cpp
Show inline comments
 
@@ -239,7 +239,7 @@ public:
 

	
 
	void DrawWidget(const Rect &r, int widget) const override
 
	{
 
		if (widget != 0) return;
 
		if (widget != WID_BAFD_QUESTION) return;
 

	
 
		DrawStringMultiLine(r.Shrink(WidgetDimensions::scaled.frametext), STR_MISSING_GRAPHICS_SET_MESSAGE, TC_FROMSTRING, SA_CENTER);
 
	}
src/screenshot_gui.cpp
Show inline comments
 
@@ -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;
0 comments (0 inline, 0 general)