Merge branch 'master' into jgrpp
# Conflicts: # .github/workflows/ci-build.yml # .github/workflows/release.yml # CMakeLists.txt # os/macosx/Info.plist.in # src/fileio.cpp # src/landscape.cpp # src/league_cmd.h # src/saveload/ai_sl.cpp # src/saveload/game_sl.cpp # src/saveload/league_sl.cpp # src/saveload/saveload.cpp
This commit is contained in:
@@ -2903,9 +2903,10 @@ void NWidgetLeaf::Draw(const Window *w)
|
||||
|
||||
if (this->current_x == 0 || this->current_y == 0) return;
|
||||
|
||||
/* Setup a clipping rectangle... */
|
||||
/* Setup a clipping rectangle... for WWT_EMPTY or WWT_TEXT, an extra scaled pixel is allowed vertically in case text shadow encroaches. */
|
||||
int extra_y = (this->type == WWT_EMPTY || this->type == WWT_TEXT) ? ScaleGUITrad(1) : 0;
|
||||
DrawPixelInfo new_dpi;
|
||||
if (!FillDrawPixelInfo(&new_dpi, this->pos_x, this->pos_y, this->current_x, this->current_y)) return;
|
||||
if (!FillDrawPixelInfo(&new_dpi, this->pos_x, this->pos_y, this->current_x, this->current_y + extra_y)) return;
|
||||
/* ...but keep coordinates relative to the window. */
|
||||
new_dpi.left += this->pos_x;
|
||||
new_dpi.top += this->pos_y;
|
||||
|
||||
Reference in New Issue
Block a user