Skip to content

Commit

Permalink
(core:build) more git "emptydirs" force-added,
Browse files Browse the repository at this point in the history
hack around odd terminations in awb.

FossilOrigin-Name: e037436c7efb6d91aaf9c3b5f3517926ec07d0384fbe8f7ee486fbae799b046a
  • Loading branch information
letoram committed Nov 15, 2013
1 parent b3e2f66 commit 8225855
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
Empty file added resources/savestates/.gitignore
Empty file.
3 changes: 2 additions & 1 deletion themes/awb/awbwman.lua
Expand Up @@ -1575,12 +1575,13 @@ function awbwman_spawn(caption, options)
for i, j in ipairs(strtbl) do
local arg = string.split(j, "=");
options[arg[1]] = tonumber_rdx(arg[2]);

if (options[arg[1]]) ~= nil) then
if (arg[1] == "x" or arg[1] == "w") then
options[arg[1]] = math.floor(VRESW * options[arg[1]]);
elseif (arg[1] == "y" or arg[1] == "h") then
options[arg[1]] = math.floor(VRESH * options[arg[1]]);
end
end
end
end
end
Expand Down
9 changes: 9 additions & 0 deletions themes/awb/display/crt.lua
Expand Up @@ -229,6 +229,15 @@ local function gen_factstr(c)
end

local function push_uniforms(s, c)
if (c.gamma == nil) then
for k, v in pairs(cont) do
if (c[k] == nil) then
c[k] = v;
end
end
return;
end

shader_uniform(s, "CRTgamma", "f", PERSIST, c.gamma);
shader_uniform(s, "overscan", "ff", PERSIST, c.hoverscan, c.voverscan);
shader_uniform(s, "monitorgamma", "f", PERSIST, c.mongamma);
Expand Down
Empty file.

0 comments on commit 8225855

Please sign in to comment.