Merge branch 'master' into jgrpp
# Conflicts: # .github/workflows/release-linux.yml # src/base_consist.h # src/blitter/32bpp_optimized.cpp # src/blitter/32bpp_optimized.hpp # src/blitter/32bpp_sse2.hpp # src/blitter/8bpp_optimized.hpp # src/gfx_func.h # src/industry_cmd.cpp # src/industrytype.h # src/linkgraph/linkgraphjob.cpp # src/mixer.cpp # src/newgrf_callbacks.h # src/openttd.cpp # src/os/macosx/macos.mm # src/os/windows/win32.cpp # src/pathfinder/npf/npf.cpp # src/road_cmd.cpp # src/saveload/afterload.cpp # src/saveload/saveload.h # src/saveload/vehicle_sl.cpp # src/sound.cpp # src/spritecache.cpp # src/spriteloader/spriteloader.hpp # src/station_map.h # src/timetable_cmd.cpp # src/timetable_cmd.h # src/timetable_gui.cpp # src/town_cmd.cpp # src/vehicle_cmd.cpp # src/vehicle_gui_base.h # src/video/opengl.cpp # src/video/opengl.h # src/viewport.cpp
This commit is contained in:
@@ -922,15 +922,11 @@ int Window::SortButtonWidth()
|
||||
|
||||
bool _draw_widget_outlines;
|
||||
|
||||
void DrawOutline(const Window *, const NWidgetBase *wid)
|
||||
static void DrawOutline(const Window *, const NWidgetBase *wid)
|
||||
{
|
||||
if (!_draw_widget_outlines || wid->current_x == 0 || wid->current_y == 0) return;
|
||||
|
||||
Rect r = wid->GetCurrentRect();
|
||||
GfxDrawLine(r.left, r.top, r.right, r.top, PC_WHITE, 1, 4);
|
||||
GfxDrawLine(r.left, r.top, r.left, r.bottom, PC_WHITE, 1, 4);
|
||||
GfxDrawLine(r.right, r.top, r.right, r.bottom, PC_WHITE, 1, 4);
|
||||
GfxDrawLine(r.left, r.bottom, r.right, r.bottom, PC_WHITE, 1, 4);
|
||||
DrawRectOutline(wid->GetCurrentRect(), PC_WHITE, 1, 4);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user