From: Holger Schemel Date: Wed, 4 Jul 2018 22:43:39 +0000 (+0200) Subject: added configurable border size also for drawing network players X-Git-Tag: 4.1.1.0~85 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=aa22230dfe2af522e1f7b40acb56983fd1044e42;p=rocksndiamonds.git added configurable border size also for drawing network players --- diff --git a/src/conf_gfx.c b/src/conf_gfx.c index ed906604..b57af4a9 100644 --- a/src/conf_gfx.c +++ b/src/conf_gfx.c @@ -8073,6 +8073,7 @@ struct ConfigInfo image_config[] = { "main.network_players.valign", "middle" }, { "main.network_players.font", "font.main.network_players" }, { "main.network_players.tile_size", "16" }, + { "main.network_players.border_size", "2" }, { "main.preview_players.x", "474" }, { "main.preview_players.y", "448" }, diff --git a/src/tools.c b/src/tools.c index 4fed1cd9..63bff391 100644 --- a/src/tools.c +++ b/src/tools.c @@ -3623,7 +3623,7 @@ void DrawNetworkPlayersExt(boolean force) struct TextPosInfo *pos = &menu.main.network_players; int tile_size = pos->tile_size; - int border_size = 2; + int border_size = pos->border_size; int xoffset_text = tile_size + border_size; int font_nr = pos->font; int font_width = getFontWidth(font_nr);