mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
v2.8.5.1
This commit is contained in:
@@ -40,7 +40,7 @@ public class GfuiBorderMgr {
|
||||
this.None_();
|
||||
else {
|
||||
Object[] ary = (Object[])o;
|
||||
this.Edge_set(GfuiBorderEdge.All, PenAdp_.new_((ColorAdp)ary[1], Float_.cast_(ary[0])));
|
||||
this.Edge_set(GfuiBorderEdge.All, PenAdp_.new_((ColorAdp)ary[1], Float_.cast(ary[0])));
|
||||
}
|
||||
}
|
||||
public void Edge_set(GfuiBorderEdge edge, PenAdp pen) {
|
||||
|
||||
@@ -93,7 +93,7 @@ public class GfxStringData {
|
||||
// }
|
||||
float x = GfuiAlign_.CalcInsideOfAxis(alignH.Val(), (int)width, ownerSize.Width());
|
||||
float y = 0; int alignVVal = alignV.Val(); float ownerHeight = ownerSize.Height();
|
||||
if (alignVVal == GfuiAlign_.Null.Val()) y = Int_.MinValue;
|
||||
if (alignVVal == GfuiAlign_.Null.Val()) y = Int_.Min_value;
|
||||
else if (alignVVal == GfuiAlign_.Lo.Val()) y = height - descent;
|
||||
else if (alignVVal == GfuiAlign_.Mid.Val()) y = (ownerHeight - (ownerHeight - height) / 2);// - descent; // COMMENT: subtracting descent is theoretically correct, but practically results in text shifted up
|
||||
else if (alignVVal == GfuiAlign_.Hi.Val()) y = ownerHeight - descent;
|
||||
|
||||
@@ -20,7 +20,7 @@ public class PaintArgs {
|
||||
public GfxAdp Graphics() {return graphics;} GfxAdp graphics;
|
||||
public RectAdp ClipRect() {return clipRect;} RectAdp clipRect;
|
||||
|
||||
public static PaintArgs cast_(Object obj) {try {return (PaintArgs)obj;} catch(Exception exc) {throw Err_.new_type_mismatch_w_exc(exc, PaintArgs.class, obj);}}
|
||||
public static PaintArgs cast(Object obj) {try {return (PaintArgs)obj;} catch(Exception exc) {throw Err_.new_type_mismatch_w_exc(exc, PaintArgs.class, obj);}}
|
||||
public static PaintArgs new_(GfxAdp graphics, RectAdp clipRect) {
|
||||
PaintArgs rv = new PaintArgs();
|
||||
rv.graphics = graphics; rv.clipRect = clipRect;
|
||||
|
||||
Reference in New Issue
Block a user