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:
Stefano Ceccherini 2007-09-10 10:20:26 +00:00
parent af02a9a71c
commit b1af0a7a24
3 changed files with 5 additions and 7 deletions

View File

@ -45,7 +45,7 @@ public:
status_t WriteSetFontRotation(const float &rotation);
status_t WriteSetFontEncoding(const int32 &encoding);
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 WriteStrokeLine(const BPoint &start, const BPoint &end);

View File

@ -524,11 +524,11 @@ PictureDataWriter::WriteSetFontFlags(const int32 &flags)
status_t
PictureDataWriter::WriteSetFontShear(const int32 &shear)
PictureDataWriter::WriteSetFontShear(const float &shear)
{
try {
BeginOp(B_PIC_SET_FONT_SHEAR);
Write<int32>(shear);
Write<float>(shear);
EndOp();
} catch (status_t &status) {
return status;

View File

@ -858,10 +858,8 @@ ServerPicture::SetFontFromLink(BPrivate::LinkReceiver& link)
if (mask & B_FONT_SHEAR) {
float shear;
link.Read<float>(&shear);
// TODO: For some reason writing the font shear
// results in missing font in Chart's BPictureButtons. Investigate.
//WriteSetFontShear(shear);
link.Read<float>(&shear);
WriteSetFontShear(shear);
}
if (mask & B_FONT_ROTATION) {