FlattenPictureTest: Fix DrawStringsWithOffset test
fixes #14481 Change-Id: I7aee0f9e1ed088d2b5253f22a55228b0fc8f16ec Reviewed-on: https://review.haiku-os.org/546 Reviewed-by: Stefano Ceccherini <[email protected]>
This commit is contained in:
committed by
Stefano Ceccherini
parent
c3ac0a72a6
commit
b070314f50
@@ -85,8 +85,19 @@ static void testDrawStringWithOffsets(BView* view, BRect frame)
|
|||||||
view->StrokeLine(BPoint(frame.left, baseline - 1), BPoint(frame.right, baseline -1));
|
view->StrokeLine(BPoint(frame.left, baseline - 1), BPoint(frame.right, baseline -1));
|
||||||
|
|
||||||
view->SetHighColor(kBlack);
|
view->SetHighColor(kBlack);
|
||||||
const BPoint pointArray[] = { BPoint(frame.left, baseline) };
|
BPoint point(frame.left, baseline);
|
||||||
view->DrawString("Haiku [ÖÜÄöüä]", pointArray, sizeof(pointArray) / sizeof(pointArray[0]));
|
BPoint pointArray[] = {
|
||||||
|
point,
|
||||||
|
point,
|
||||||
|
point,
|
||||||
|
point,
|
||||||
|
point
|
||||||
|
};
|
||||||
|
|
||||||
|
for (size_t i = 1; i < (sizeof(pointArray) / sizeof(pointArray[0])); i++)
|
||||||
|
pointArray[i] = pointArray[i - 1] + BPoint(10, 0);
|
||||||
|
|
||||||
|
view->DrawString("Haiku", pointArray, sizeof(pointArray) / sizeof(pointArray[0]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user