From 930bb143acd32309188f34cd5e533c47dbb4e7db Mon Sep 17 00:00:00 2001 From: Maurizio Monge Date: Tue, 17 Jul 2007 00:48:37 +0200 Subject: [PATCH] fixed a stupid bug --- data/themes/squares/Default/theme.lua | 15 --------------- src/luaapi/imaging.cpp | 2 +- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/data/themes/squares/Default/theme.lua b/data/themes/squares/Default/theme.lua index 8ab3e49..6a7fb2a 100644 --- a/data/themes/squares/Default/theme.lua +++ b/data/themes/squares/Default/theme.lua @@ -15,21 +15,6 @@ theme.background = function (size) return i end -function alone(color) - return function(size) - local i = Image(size,size) - i:clear() - i:draw_line(Point(size*0.1,size*0.1), Point(size*0.9,size*0.1), color, size*0.1); - i:draw_line(Point(size*0.1,size*0.9), Point(size*0.9,size*0.9), color, size*0.1); - i:draw_line(Point(size*0.1,size*0.1), Point(size*0.1,size*0.9), color, size*0.1); - i:draw_line(Point(size*0.9,size*0.1), Point(size*0.9,size*0.9), color, size*0.1); - local a = Color(color) - a.a = 64 - i:fill_rect(Rect(size*0.1,size*0.1,size*0.8,size*0.8), a); - i:exp_blur(size*0.1); - return i - end -end theme.name = "Default" theme.description = "Default squares" diff --git a/src/luaapi/imaging.cpp b/src/luaapi/imaging.cpp index 46c5238..74bf3b2 100644 --- a/src/luaapi/imaging.cpp +++ b/src/luaapi/imaging.cpp @@ -194,7 +194,7 @@ int Wrapper::constructor(lua_State* l) { { QColor c = get(l, 1); lua_pop(l, 1); - create(l); + create(l, c); break; } case 3: -- 2.11.4.GIT