Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

lcd: moved kFrameTicks to lcd.h for use in other modules

bunnei46aef01d0431
diff --git a/src/core/hw/lcd.cpp b/src/core/hw/lcd.cpp
index b57563a73a..6cbce14ed2 100644
--- a/src/core/hw/lcd.cpp
+++ b/src/core/hw/lcd.cpp
@@ -17,8 +17,6 @@ namespace LCD {
Registers g_regs;
-static const u32 kFrameTicks = 268123480 / 60; ///< 268MHz / 60 frames per second
-
u64 g_last_ticks = 0; ///< Last CPU ticks
/**
diff --git a/src/core/hw/lcd.h b/src/core/hw/lcd.h
index 2dd3b4adc3..41baa51d0b 100644
--- a/src/core/hw/lcd.h
+++ b/src/core/hw/lcd.h
@@ -8,6 +8,8 @@
namespace LCD {
+static const u32 kFrameTicks = 268123480 / 60; ///< 268MHz / 60 frames per second
+
struct Registers {
u32 framebuffer_top_left_1;
u32 framebuffer_top_left_2;