Skip to content

Commit 096d202

Browse files
Updating version, check, and readme
1 parent 041879a commit 096d202

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

obs-zoom-to-mouse.lua

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
local obs = obslua
88
local ffi = require("ffi")
9-
local VERSION = "1.0.1"
9+
local VERSION = "1.0"
1010
local CROP_FILTER_NAME = "obs-zoom-to-mouse-crop"
1111

1212
local source_name = ""
@@ -195,7 +195,7 @@ function get_dc_info()
195195
prop_type = "int"
196196
}
197197
elseif ffi.os == "OSX" then
198-
if major > 29.1 then
198+
if major > 29.0 then
199199
return {
200200
source_id = "screen_capture",
201201
prop_id = "display_uuid",
@@ -1065,7 +1065,6 @@ function log_current_settings()
10651065
}
10661066

10671067
log("OBS Version: " .. string.format("%.1f", major))
1068-
log("Script Version: " .. VERSION)
10691068
log("Current settings:")
10701069
log(format_table(settings))
10711070
end
@@ -1255,7 +1254,7 @@ end
12551254

12561255
function script_unload()
12571256
-- Clean up the memory usage
1258-
if major > 29.0 then
1257+
if major > 29.0 then -- 29.0 seems to crash if you do this, so we ignore it as the script is closing anyway
12591258
local transitions = obs.obs_frontend_get_transitions()
12601259
if transitions ~= nil then
12611260
for i, s in pairs(transitions) do

0 commit comments

Comments
 (0)