mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-24 04:29:34 -04:00
fix right-aligned hud widgets partially drawn off-screen
Fixes #1201, thanks @liPillON
This commit is contained in:
parent
4aa9db1ee3
commit
eb5552057e
@ -32,7 +32,7 @@ int hud_widescreen_widgets;
|
|||||||
void HUlib_set_margins (void)
|
void HUlib_set_margins (void)
|
||||||
{
|
{
|
||||||
left_margin = HU_GAPX;
|
left_margin = HU_GAPX;
|
||||||
max_width = SCREENWIDTH - WIDESCREENDELTA - 2 * HU_GAPX;
|
max_width = SCREENWIDTH - WIDESCREENDELTA - HU_GAPX;
|
||||||
|
|
||||||
if (hud_widescreen_widgets)
|
if (hud_widescreen_widgets)
|
||||||
{
|
{
|
||||||
@ -336,7 +336,7 @@ static void draw_line_aligned (const hu_multiline_t *m, const hu_line_t *l, cons
|
|||||||
{
|
{
|
||||||
int w = SHORT(p[c-HU_FONTSTART]->width);
|
int w = SHORT(p[c-HU_FONTSTART]->width);
|
||||||
|
|
||||||
if (x+w >= max_width)
|
if (x+w > max_width)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// killough 1/18/98 -- support multiple lines:
|
// killough 1/18/98 -- support multiple lines:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user