From 0e69507f024094aed1c5ca5937ca723db5e41099 Mon Sep 17 00:00:00 2001 From: gaochao Date: Thu, 19 Jun 2025 17:08:04 +0800 Subject: [PATCH] =?UTF-8?q?CAPI=E7=BB=93=E6=9E=84=E4=BD=93=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: gaochao --- zh-cn/native_sdk/resmgr/resmgr_common.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/zh-cn/native_sdk/resmgr/resmgr_common.h b/zh-cn/native_sdk/resmgr/resmgr_common.h index 5b459ec9..8b7aac9e 100644 --- a/zh-cn/native_sdk/resmgr/resmgr_common.h +++ b/zh-cn/native_sdk/resmgr/resmgr_common.h @@ -150,7 +150,12 @@ typedef struct ResourceManager_Configuration { char* locale; /** 表示设备类型。 */ ResourceManager_DeviceType deviceType; - /** 表示屏幕密度。 */ + /** + * 表示屏幕密度。 + * + * @deprecated since 20 + * @useinstead screenDensityDpi + */ ScreenDensity screenDensity; /** 表示颜色模式。 */ ResourceManager_ColorMode colorMode; @@ -160,6 +165,12 @@ typedef struct ResourceManager_Configuration { uint32_t mnc; /** 保留属性。 */ uint32_t reserved[20]; + /** + * 表示屏幕密度dpi。 + * + * @since 20 + */ + ScreenDensity screenDensityDpi; } ResourceManager_Configuration; #ifdef __cplusplus }; -- Gitee