mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
implemented resampled text ("high quality")
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@87 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -26,8 +26,8 @@ double align_delta_y(Alignment align, double box_height, double obj_height) {
|
||||
|
||||
RealPoint align_in_rect(Alignment align, const RealSize& to_align, const RealRect& outer) {
|
||||
return RealPoint(
|
||||
outer.position.x + align_delta_x(align, outer.size.width, to_align.width),
|
||||
outer.position.y + align_delta_y(align, outer.size.height, to_align.height)
|
||||
outer.x + align_delta_x(align, outer.width, to_align.width),
|
||||
outer.y + align_delta_y(align, outer.height, to_align.height)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user