From b2a85a2820498a137a56bfa298a5649db43d2110 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Fri, 16 Sep 2016 19:47:24 -0700 Subject: [PATCH] obs-text: Reload whenever file timestamp has changed Rather than reload when the timestamp is greater than the previous timestamp, reload whenever the timestamp has changed. --- plugins/obs-text/gdiplus/obs-text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/obs-text/gdiplus/obs-text.cpp b/plugins/obs-text/gdiplus/obs-text.cpp index ad56862ab..e74f73709 100644 --- a/plugins/obs-text/gdiplus/obs-text.cpp +++ b/plugins/obs-text/gdiplus/obs-text.cpp @@ -736,7 +736,7 @@ inline void TextSource::Tick(float seconds) time_t t = get_modified_timestamp(file.c_str()); update_time_elapsed = 0.0f; - if (file_timestamp < t) { + if (file_timestamp != t) { LoadFileText(); RenderText(); file_timestamp = t;