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,
|
DISPLAY_COMPRESS,
|
||||||
UPDATE_SCALE,
|
UPDATE_SCALE,
|
||||||
UNKNOWN,
|
UNKNOWN,
|
||||||
|
RESOLUTION_CHANGE,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1446,7 +1446,7 @@ DMError ScreenSessionManager::SetVirtualPixelRatio(ScreenId screenId, float virt
|
|||||||
virtualPixelRatio);
|
virtualPixelRatio);
|
||||||
screenSession->SetVirtualPixelRatio(virtualPixelRatio);
|
screenSession->SetVirtualPixelRatio(virtualPixelRatio);
|
||||||
std::map<DisplayId, sptr<DisplayInfo>> emptyMap;
|
std::map<DisplayId, sptr<DisplayInfo>> emptyMap;
|
||||||
NotifyDisplayStateChange(GetDefaultScreenId(), screenSession->ConvertToDisplayInfo(),
|
NotifyDisplayStateChange(screenId, screenSession->ConvertToDisplayInfo(),
|
||||||
emptyMap, DisplayStateChangeType::VIRTUAL_PIXEL_RATIO_CHANGE);
|
emptyMap, DisplayStateChangeType::VIRTUAL_PIXEL_RATIO_CHANGE);
|
||||||
NotifyScreenChanged(screenSession->ConvertToScreenInfo(), ScreenChangeEvent::VIRTUAL_PIXEL_RATIO_CHANGED);
|
NotifyScreenChanged(screenSession->ConvertToScreenInfo(), ScreenChangeEvent::VIRTUAL_PIXEL_RATIO_CHANGED);
|
||||||
NotifyDisplayChanged(screenSession->ConvertToDisplayInfo(),
|
NotifyDisplayChanged(screenSession->ConvertToDisplayInfo(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user