Setting the font shear in a BPicture didn't work, because the value was
treated as uint32 in some places, when it's a float. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22214 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -45,7 +45,7 @@ public:
|
|||||||
status_t WriteSetFontRotation(const float &rotation);
|
status_t WriteSetFontRotation(const float &rotation);
|
||||||
status_t WriteSetFontEncoding(const int32 &encoding);
|
status_t WriteSetFontEncoding(const int32 &encoding);
|
||||||
status_t WriteSetFontFlags(const int32 &flags);
|
status_t WriteSetFontFlags(const int32 &flags);
|
||||||
status_t WriteSetFontShear(const int32 &shear);
|
status_t WriteSetFontShear(const float &shear);
|
||||||
status_t WriteSetFontFace(const int32 &face);
|
status_t WriteSetFontFace(const int32 &face);
|
||||||
|
|
||||||
status_t WriteStrokeLine(const BPoint &start, const BPoint &end);
|
status_t WriteStrokeLine(const BPoint &start, const BPoint &end);
|
||||||
|
|||||||
@@ -524,11 +524,11 @@ PictureDataWriter::WriteSetFontFlags(const int32 &flags)
|
|||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
PictureDataWriter::WriteSetFontShear(const int32 &shear)
|
PictureDataWriter::WriteSetFontShear(const float &shear)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
BeginOp(B_PIC_SET_FONT_SHEAR);
|
BeginOp(B_PIC_SET_FONT_SHEAR);
|
||||||
Write<int32>(shear);
|
Write<float>(shear);
|
||||||
EndOp();
|
EndOp();
|
||||||
} catch (status_t &status) {
|
} catch (status_t &status) {
|
||||||
return status;
|
return status;
|
||||||
|
|||||||
@@ -859,9 +859,7 @@ ServerPicture::SetFontFromLink(BPrivate::LinkReceiver& link)
|
|||||||
if (mask & B_FONT_SHEAR) {
|
if (mask & B_FONT_SHEAR) {
|
||||||
float shear;
|
float shear;
|
||||||
link.Read<float>(&shear);
|
link.Read<float>(&shear);
|
||||||
// TODO: For some reason writing the font shear
|
WriteSetFontShear(shear);
|
||||||
// results in missing font in Chart's BPictureButtons. Investigate.
|
|
||||||
//WriteSetFontShear(shear);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mask & B_FONT_ROTATION) {
|
if (mask & B_FONT_ROTATION) {
|
||||||
|
|||||||
Reference in New Issue
Block a user