diff options
| author | 2018-08-31 14:16:16 +0800 | |
|---|---|---|
| committer | 2018-12-18 22:54:41 +0100 | |
| commit | a2be49305d8c5c66cfa2ec2060688013cf3729b9 (patch) | |
| tree | 2a2e38805ae8af0718628682d7e911ccb253fc16 /src/core/frontend/framebuffer_layout.h | |
| parent | Merge pull request #1868 from lioncash/config (diff) | |
| download | yuzu-a2be49305d8c5c66cfa2ec2060688013cf3729b9.tar.gz yuzu-a2be49305d8c5c66cfa2ec2060688013cf3729b9.tar.xz yuzu-a2be49305d8c5c66cfa2ec2060688013cf3729b9.zip | |
yuzu, video_core: Screenshot functionality
Allows capturing screenshot at the current internal resolution (native for software renderer), but a setting is available to capture it in other resolutions. The screenshot is saved to a single PNG in the current layout.
Diffstat (limited to 'src/core/frontend/framebuffer_layout.h')
| -rw-r--r-- | src/core/frontend/framebuffer_layout.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/frontend/framebuffer_layout.h b/src/core/frontend/framebuffer_layout.h index f3fddfa94..e06647794 100644 --- a/src/core/frontend/framebuffer_layout.h +++ b/src/core/frontend/framebuffer_layout.h | |||
| @@ -9,6 +9,7 @@ | |||
| 9 | namespace Layout { | 9 | namespace Layout { |
| 10 | 10 | ||
| 11 | enum ScreenUndocked : unsigned { Width = 1280, Height = 720 }; | 11 | enum ScreenUndocked : unsigned { Width = 1280, Height = 720 }; |
| 12 | enum ScreenDocked : unsigned { WidthDocked = 1920, HeightDocked = 1080 }; | ||
| 12 | 13 | ||
| 13 | /// Describes the layout of the window framebuffer | 14 | /// Describes the layout of the window framebuffer |
| 14 | struct FramebufferLayout { | 15 | struct FramebufferLayout { |
| @@ -34,4 +35,10 @@ struct FramebufferLayout { | |||
| 34 | */ | 35 | */ |
| 35 | FramebufferLayout DefaultFrameLayout(unsigned width, unsigned height); | 36 | FramebufferLayout DefaultFrameLayout(unsigned width, unsigned height); |
| 36 | 37 | ||
| 38 | /** | ||
| 39 | * Convenience method to get frame layout by resolution scale | ||
| 40 | * @param res_scale resolution scale factor | ||
| 41 | */ | ||
| 42 | FramebufferLayout FrameLayoutFromResolutionScale(u16 res_scale); | ||
| 43 | |||
| 37 | } // namespace Layout | 44 | } // namespace Layout |