Skip to content

Commit

Permalink
minor tuneups, adding more missing folders that disappeared in svn move.
Browse files Browse the repository at this point in the history
FossilOrigin-Name: b5b1690c05f99dff4a5ab1bbd03d6841a10ed7f21b6684be26c95f0a8e7cb812
  • Loading branch information
letoram committed Nov 14, 2013
1 parent 014305b commit b3e2f66
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
9 changes: 0 additions & 9 deletions themes/awb/awb.lua
Original file line number Diff line number Diff line change
Expand Up @@ -286,15 +286,6 @@ function spawn_vidwin(self)
return;
end

local res = awbwman_inputattach(function(msg) end,
inputlbl, {
w = 64,
h = 32,
owner = wnd.canvas.vid
});

-- tests, border, noborder, static vs. dynamic
wnd.input = function(self, tbl) res:input(tbl); end
end

function gamelist_media(tbl)
Expand Down
20 changes: 17 additions & 3 deletions themes/awb/awbwman.lua
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,12 @@ end

function awbwman_fullscreen(wnd)
awbwman_focus(wnd);
if (awb_cfg.shadowimg ~= nil) then
expire_image(awb_cfg.shadowimg, awb_cfg.animspeed);
blend_image(awb_cfg.shadowimg, 0.0, awb_cfg.animspeed);
awb_cfg.shadowimg = nil;
end

blend_image(mouse_cursor(), 0.0, awb_cfg.animspeed);

-- hide root window (will cascade and hide everything else)
Expand Down Expand Up @@ -259,7 +265,8 @@ function awbwman_shadow_nonfocus()
blend_image(awb_cfg.shadowimg, 0.5, awb_cfg.animspeed);
else
expire_image(awb_cfg.shadowimg, awb_cfg.animspeed);
blend_image(awb_cfg.shadowimg, 0.0, awb_cfg.animspeed);
blend_image(awb_cfg.shadowimg, 0.0, awb_cfg.animspeed);
awb_cfg.shadowimg = nil;
end
end

Expand Down Expand Up @@ -468,6 +475,10 @@ function awbwman_gather_scatter()
for ind, val in ipairs(awb_wtable) do
if (not val.minimized) then
val.pos_memory = {val.x, val.y};
if (val.w == nil) then
val.w = 64;
val.h = 32;
end

if ( ( val.x + val.w * 0.5) < 0.5 * VRESW) then
move_image(val.anchor, -val.w, val.y, awb_cfg.animspeed);
Expand Down Expand Up @@ -897,12 +908,15 @@ function awbwman_rootwnd()
local g = awb_col.bgcolor.g;
local b = awb_col.bgcolor.b;
local canvas = fill_surface(wcont.w, wcont.h, r, g, b);
wcont:update_canvas(canvas);
image_sharestorage(canvas, wcont.canvas.vid);
delete_image(canvas);
end,
function()
show_help();
end,
shutdown
function()
awbwman_shutdown();
end
};

local icn = tbar:add_icon("cap", "l", cap, function(self)
Expand Down
1 change: 1 addition & 0 deletions themes/awb/awbwnd_media.lua
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ local function vcap_setup(pwin)
else
running = true;
pwin:update_canvas(source);
pwin:resize(status.width, status.height, true, true);
end
end
end);
Expand Down
Empty file added themes/awb/shortcuts/.gitignore
Empty file.

0 comments on commit b3e2f66

Please sign in to comment.