aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/QuickMedia.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index ddb8c12..e00bb85 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -73,23 +73,6 @@ static int FPS_IDLE;
static const double IDLE_TIMEOUT_SEC = 2.0;
static const mgl::vec2i AVATAR_THUMBNAIL_SIZE(std::floor(32), std::floor(32));
-static int monitor_info_get_fps(const XRRModeInfo *mode_info) {
- double v_total = mode_info->vTotal;
- if(mode_info->modeFlags & RR_DoubleScan) {
- v_total *= 2;
- }
-
- if(mode_info->modeFlags & RR_Interlace) {
- v_total /= 2;
- }
-
- if(mode_info->hTotal > 0 && v_total > 0.0001) {
- return std::round((double)mode_info->dotClock / ((double)mode_info->hTotal * v_total));
- } else {
- return 0;
- }
-}
-
struct Logo {
const char *dark_theme_path;
const char *light_theme_path;