NamcoGunCon: Use correct GPU clock as reference

This commit is contained in:
Connor McLaughlin
2020-07-02 02:51:22 +10:00
parent 06b329b4c6
commit 8a8ce8d41c
3 changed files with 10 additions and 1 deletions

View File

@ -173,6 +173,9 @@ public:
// Converts window coordinates into horizontal ticks and scanlines. Returns false if out of range. Used for lightguns.
bool ConvertScreenCoordinatesToBeamTicksAndLines(s32 window_x, s32 window_y, u32* out_tick, u32* out_line) const;
// Returns the video clock frequency.
TickCount GetCRTCFrequency() const;
protected:
TickCount CRTCTicksToSystemTicks(TickCount crtc_ticks, TickCount fractional_ticks) const;
TickCount SystemTicksToCRTCTicks(TickCount sysclk_ticks, TickCount* fractional_ticks) const;