mirror of
https://gitee.com/openharmony/window_window_manager
synced 2025-03-04 05:37:27 +00:00
commit
7eeab36c04
@ -354,6 +354,7 @@ enum class DisplayStateChangeType : uint32_t {
|
||||
DISPLAY_COMPRESS,
|
||||
UPDATE_SCALE,
|
||||
UNKNOWN,
|
||||
RESOLUTION_CHANGE,
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -1446,7 +1446,7 @@ DMError ScreenSessionManager::SetVirtualPixelRatio(ScreenId screenId, float virt
|
||||
virtualPixelRatio);
|
||||
screenSession->SetVirtualPixelRatio(virtualPixelRatio);
|
||||
std::map<DisplayId, sptr<DisplayInfo>> emptyMap;
|
||||
NotifyDisplayStateChange(GetDefaultScreenId(), screenSession->ConvertToDisplayInfo(),
|
||||
NotifyDisplayStateChange(screenId, screenSession->ConvertToDisplayInfo(),
|
||||
emptyMap, DisplayStateChangeType::VIRTUAL_PIXEL_RATIO_CHANGE);
|
||||
NotifyScreenChanged(screenSession->ConvertToScreenInfo(), ScreenChangeEvent::VIRTUAL_PIXEL_RATIO_CHANGED);
|
||||
NotifyDisplayChanged(screenSession->ConvertToDisplayInfo(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user