mirror of
https://gitee.com/openharmony/window_window_manager
synced 2024-11-23 06:50:40 +00:00
fix setResolution bug
Signed-off-by: liuyangyang <liuyangyang58@huawei.com>
This commit is contained in:
parent
2aa1e7e886
commit
1df052b79a
@ -26,7 +26,8 @@ bool DisplayInfo::Marshalling(Parcel &parcel) const
|
||||
parcel.WriteInt32(width_) && parcel.WriteInt32(height_) &&
|
||||
parcel.WriteInt32(physicalWidth_) && parcel.WriteInt32(physicalHeight_) &&
|
||||
parcel.WriteUint32(refreshRate_) && parcel.WriteUint64(screenId_) &&
|
||||
parcel.WriteFloat(virtualPixelRatio_) && parcel.WriteFloat(xDpi_) && parcel.WriteFloat(yDpi_) &&
|
||||
parcel.WriteFloat(virtualPixelRatio_) && parcel.WriteFloat(densityInCurResolution_) &&
|
||||
parcel.WriteFloat(xDpi_) && parcel.WriteFloat(yDpi_) &&
|
||||
parcel.WriteUint32(static_cast<uint32_t>(rotation_)) &&
|
||||
parcel.WriteUint32(static_cast<uint32_t>(orientation_)) &&
|
||||
parcel.WriteInt32(offsetX_) && parcel.WriteInt32(offsetY_) &&
|
||||
@ -52,7 +53,7 @@ DisplayInfo *DisplayInfo::Unmarshalling(Parcel &parcel)
|
||||
parcel.ReadInt32(displayInfo->width_) && parcel.ReadInt32(displayInfo->height_) &&
|
||||
parcel.ReadInt32(displayInfo->physicalWidth_) && parcel.ReadInt32(displayInfo->physicalHeight_) &&
|
||||
parcel.ReadUint32(displayInfo->refreshRate_) && parcel.ReadUint64(displayInfo->screenId_) &&
|
||||
parcel.ReadFloat(displayInfo->virtualPixelRatio_) &&
|
||||
parcel.ReadFloat(displayInfo->virtualPixelRatio_) && parcel.ReadFloat(displayInfo->densityInCurResolution_) &&
|
||||
parcel.ReadFloat(displayInfo->xDpi_) && parcel.ReadFloat(displayInfo->yDpi_) &&
|
||||
parcel.ReadUint32(rotation) && parcel.ReadUint32(orientation) &&
|
||||
parcel.ReadInt32(displayInfo->offsetX_) && parcel.ReadInt32(displayInfo->offsetY_) &&
|
||||
|
Loading…
Reference in New Issue
Block a user