Bflyt : Fix text pane alignment property for X/Y being swapped
This commit is contained in:
parent
dfea7c72a8
commit
071fb61418
@ -96,22 +96,22 @@ namespace LayoutBXLYT.Cafe
|
||||
[DisplayName("Horizontal Alignment"), CategoryAttribute("Font")]
|
||||
public OriginX HorizontalAlignment
|
||||
{
|
||||
get { return (OriginX)((TextAlignment >> 2) & 0x3); }
|
||||
get { return (OriginY)((TextAlignment) & 0x3); }
|
||||
set
|
||||
{
|
||||
TextAlignment &= unchecked((byte)(~0xC));
|
||||
TextAlignment |= (byte)((byte)(value) << 2);
|
||||
TextAlignment &= unchecked((byte)(~0x3));
|
||||
TextAlignment |= (byte)(value);
|
||||
}
|
||||
}
|
||||
|
||||
[DisplayName("Vertical Alignment"), CategoryAttribute("Font")]
|
||||
public OriginY VerticalAlignment
|
||||
{
|
||||
get { return (OriginY)((TextAlignment) & 0x3); }
|
||||
get { return (OriginX)((TextAlignment >> 2) & 0x3); }
|
||||
set
|
||||
{
|
||||
TextAlignment &= unchecked((byte)(~0x3));
|
||||
TextAlignment |= (byte)(value);
|
||||
TextAlignment &= unchecked((byte)(~0xC));
|
||||
TextAlignment |= (byte)((byte)(value) << 2);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user