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")]
|
[DisplayName("Horizontal Alignment"), CategoryAttribute("Font")]
|
||||||
public OriginX HorizontalAlignment
|
public OriginX HorizontalAlignment
|
||||||
{
|
{
|
||||||
get { return (OriginX)((TextAlignment >> 2) & 0x3); }
|
get { return (OriginY)((TextAlignment) & 0x3); }
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
TextAlignment &= unchecked((byte)(~0xC));
|
TextAlignment &= unchecked((byte)(~0x3));
|
||||||
TextAlignment |= (byte)((byte)(value) << 2);
|
TextAlignment |= (byte)(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[DisplayName("Vertical Alignment"), CategoryAttribute("Font")]
|
[DisplayName("Vertical Alignment"), CategoryAttribute("Font")]
|
||||||
public OriginY VerticalAlignment
|
public OriginY VerticalAlignment
|
||||||
{
|
{
|
||||||
get { return (OriginY)((TextAlignment) & 0x3); }
|
get { return (OriginX)((TextAlignment >> 2) & 0x3); }
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
TextAlignment &= unchecked((byte)(~0x3));
|
TextAlignment &= unchecked((byte)(~0xC));
|
||||||
TextAlignment |= (byte)(value);
|
TextAlignment |= (byte)((byte)(value) << 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user