Skip to content

Commit

Permalink
correctly detect the displays video bit depth
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert committed Oct 15, 2024
1 parent ee4d7a1 commit ee2a7b9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions source/utils/globals.bs
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,8 @@ sub SaveDeviceToGlobal()
print "ERROR parsing deviceInfo.GetVideoMode()"
end if
videoWidth = heightToWidth[videoHeight]
if videoHeight = "2160" and extraData = "b10"
bitDepth = 10
else if videoHeight = "4320"
bitDepth = 12
end if
if extraData <> invalid and extraData = "b10" then bitDepth = 10
if videoHeight = "4320" then bitDepth = 12

m.global.addFields({
device: {
Expand Down

0 comments on commit ee2a7b9

Please sign in to comment.