新增设置dpi接口

Signed-off-by: 神气龙 <shenqilong1@huawei.com>
This commit is contained in:
神气龙 2024-04-18 14:49:40 +00:00 committed by Gitee
parent 49f6ee8131
commit 0700d7e45a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -118,6 +118,7 @@ public:
virtual DMError SetScreenActiveMode(ScreenId screenId, uint32_t modeId);
virtual sptr<ScreenInfo> GetScreenInfo(ScreenId screenId);
virtual DMError SetVirtualPixelRatio(ScreenId screenId, float virtualPixelRatio);
virtual DMError SetVirtualPixelRatioSystem(ScreenId screenId, float virtualPixelRatio);
virtual DMError SetResolution(ScreenId screenId, uint32_t width, uint32_t height, float virtualPixelRatio);
virtual DMError GetDensityInCurResolution(ScreenId screenId, float& virtualPixelRatio);
virtual DMError ResizeVirtualScreen(ScreenId screenId, uint32_t width, uint32_t height);