app_server: fix ServerPicture::SyncState pen size

* Should use the unscaled pen size here because we also write down
  the current scale, and we don't want to scale the pen twice.
This commit is contained in:
Julian Harnath 2015-07-08 20:54:56 +02:00
parent 1b4dba929d
commit 8511f6ac9b
3 changed files with 4 additions and 1 deletions

View File

@ -978,7 +978,7 @@ ServerPicture::SyncState(View* view)
WriteSetOrigin(view->CurrentState()->Origin()); WriteSetOrigin(view->CurrentState()->Origin());
WriteSetPenLocation(view->CurrentState()->PenLocation()); WriteSetPenLocation(view->CurrentState()->PenLocation());
WriteSetPenSize(view->CurrentState()->PenSize()); WriteSetPenSize(view->CurrentState()->UnscaledPenSize());
WriteSetScale(view->CurrentState()->Scale()); WriteSetScale(view->CurrentState()->Scale());
WriteSetLineMode(view->CurrentState()->LineCapMode(), WriteSetLineMode(view->CurrentState()->LineCapMode(),
view->CurrentState()->LineJoinMode(), view->CurrentState()->LineJoinMode(),

View File

@ -63,6 +63,8 @@ public:
status_t ExportData(BPrivate::PortLink& link); status_t ExportData(BPrivate::PortLink& link);
private: private:
friend class PictureBoundingBoxPlayer;
typedef BObjectList<ServerPicture> PictureList; typedef BObjectList<ServerPicture> PictureList;
int32 fToken; int32 fToken;

View File

@ -156,6 +156,7 @@ SharedLibrary libtestappserver.so :
DesktopSettings.cpp DesktopSettings.cpp
OffscreenServerWindow.cpp OffscreenServerWindow.cpp
OffscreenWindow.cpp OffscreenWindow.cpp
PictureBoundingBoxPlayer.cpp
RegionPool.cpp RegionPool.cpp
Screen.cpp Screen.cpp
ScreenConfigurations.cpp ScreenConfigurations.cpp