From 6684abd131da595c3cbb11607b101c1bed381fd7 Mon Sep 17 00:00:00 2001 From: Lenheart <947330670@qq.com> Date: Tue, 7 Apr 2026 00:16:02 +0800 Subject: [PATCH] =?UTF-8?q?docs(graphics):=20=E6=B7=BB=E5=8A=A0=E6=B8=B2?= =?UTF-8?q?=E6=9F=93=E5=88=86=E8=BE=A8=E7=8E=87=E7=BC=A9=E6=94=BE=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E7=9A=84=E6=B3=A8=E9=87=8A=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为 ResolutionScaleMode 枚举添加详细的中文注释,说明每种缩放模式的具体行为 --- .../include/frostbite2D/graphics/render_resolution.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Frostbite2D/include/frostbite2D/graphics/render_resolution.h b/Frostbite2D/include/frostbite2D/graphics/render_resolution.h index 75055fd..56620af 100644 --- a/Frostbite2D/include/frostbite2D/graphics/render_resolution.h +++ b/Frostbite2D/include/frostbite2D/graphics/render_resolution.h @@ -4,10 +4,13 @@ namespace frostbite2D { +/** + * @brief 虚拟分辨率缩放模式 + */ enum class ResolutionScaleMode { - Disabled, - Fit, - FitHeight, + Disabled, ///< 不保持纵横比,直接按窗口宽高分别缩放 + Fit, ///< 保持纵横比并完整显示,按较小缩放因子适配 + FitHeight, ///< 以高度优先适配,宽度不足时回退为 Fit }; struct RenderResolutionState {