mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-24 04:29:34 -04:00
fix middle alignment for patches with offsets (#1995)
This commit is contained in:
parent
1a4184da65
commit
bf9f8ddf86
@ -1104,7 +1104,7 @@ static void DrawPatch(int x, int y, int maxheight, sbaralignment_t alignment,
|
|||||||
|
|
||||||
if (alignment & sbe_h_middle)
|
if (alignment & sbe_h_middle)
|
||||||
{
|
{
|
||||||
x -= (width >> 1);
|
x = x - width / 2 + SHORT(patch->leftoffset);
|
||||||
}
|
}
|
||||||
else if (alignment & sbe_h_right)
|
else if (alignment & sbe_h_right)
|
||||||
{
|
{
|
||||||
@ -1113,7 +1113,7 @@ static void DrawPatch(int x, int y, int maxheight, sbaralignment_t alignment,
|
|||||||
|
|
||||||
if (alignment & sbe_v_middle)
|
if (alignment & sbe_v_middle)
|
||||||
{
|
{
|
||||||
y -= (height >> 1);
|
y = y - height / 2 + SHORT(patch->topoffset);
|
||||||
}
|
}
|
||||||
else if (alignment & sbe_v_bottom)
|
else if (alignment & sbe_v_bottom)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user