3ds.h 837 B

123456789101112131415161718192021
  1. // Copyright 2017 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. namespace Core {
  6. // 3DS Video Constants
  7. // -------------------
  8. // NOTE: The LCDs actually rotate the image 90 degrees when displaying. Because of that the
  9. // framebuffers in video memory are stored in column-major order and rendered sideways, causing
  10. // the widths and heights of the framebuffers read by the LCD to be switched compared to the
  11. // heights and widths of the screens listed here.
  12. constexpr int kScreenTopWidth = 400; ///< 3DS top screen width
  13. constexpr int kScreenTopHeight = 240; ///< 3DS top screen height
  14. constexpr int kScreenBottomWidth = 320; ///< 3DS bottom screen width
  15. constexpr int kScreenBottomHeight = 240; ///< 3DS bottom screen height
  16. } // namespace Core