<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -43,7 +43,13 @@ end)
 
 function frame:SetDB(newdb)
 	db = newdb
+	self:Position()
+end
+
+
+function frame:Position()
 	frame:ClearAllPoints()
+	frame:SetScale(db.scale)
 	frame:SetPoint(&quot;CENTER&quot;, UIParent, db.x and &quot;BOTTOMLEFT&quot; or &quot;CENTER&quot;, db.x or 0, db.y or -100)
 end
 </diff>
      <filename>Block.lua</filename>
    </modified>
    <modified>
      <diff>@@ -49,8 +49,7 @@ frame:SetScript(&quot;OnShow&quot;, function(frame)
 
 
 	local alpha = math.floor(ControlFreak.db.char.alpha*100 + .5)
-	local alphaslider, alphaslidertext = tekslider.new(frame, &quot;Alpha: &quot;..alpha..&quot;%&quot;, &quot;0%&quot;, &quot;100%&quot;, &quot;TOP&quot;, threshcontainer, &quot;BOTTOM&quot;, 0, -GAP)
---~ 	alphaslider:SetPoint(&quot;LEFT&quot;, threshslider, &quot;LEFT&quot;)
+	local alphaslider, alphaslidertext, alphacontainer = tekslider.new(frame, &quot;Alpha: &quot;..alpha..&quot;%&quot;, &quot;0%&quot;, &quot;100%&quot;, &quot;TOP&quot;, threshcontainer, &quot;BOTTOM&quot;, 0, -GAP)
 	alphaslider.tiptext = &quot;Alpha level to fade frame to when focus is controlled, dead, or not set.&quot;
 	alphaslider:SetValue(ControlFreak.db.char.alpha)
 	alphaslider:SetValueStep(0.05)
@@ -62,6 +61,21 @@ frame:SetScript(&quot;OnShow&quot;, function(frame)
 	end)
 
 
+	local scale = math.floor(ControlFreak.db.char.frameopts.scale*100 + .5)
+	local scaleslider, scaleslidertext = tekslider.new(frame, &quot;Scale: &quot;..scale..&quot;%&quot;, &quot;50%&quot;, &quot;200%&quot;, &quot;TOP&quot;, alphacontainer, &quot;BOTTOM&quot;, 0, -GAP)
+	scaleslider.tiptext = &quot;Frame scale.&quot;
+	scaleslider:SetValue(ControlFreak.db.char.frameopts.scale)
+	scaleslider:SetValueStep(0.05)
+	scaleslider:SetScript(&quot;OnValueChanged&quot;, function()
+		local block, db = ControlFreakFrame, ControlFreak.db.char.frameopts
+		local oldscale, oldx, oldy = block:GetScale(), block:GetCenter()
+		db.scale = scaleslider:GetValue()
+		db.x, db.y = oldx * oldscale / db.scale, oldy * oldscale / db.scale
+		block:Position()
+		scaleslidertext:SetText(&quot;Scale: &quot;..math.floor(db.scale*100 + .5)..&quot;%&quot;)
+	end)
+
+
 	frame:SetScript(&quot;OnShow&quot;, fade)
 end)
 </diff>
      <filename>Config.lua</filename>
    </modified>
    <modified>
      <diff>@@ -59,7 +59,7 @@ function ControlFreak:Initialize()
 			breakthreshold = 5,
 			alpha = 0.5,
 			showtooltip = true,
-			frameopts = {locked = false}
+			frameopts = {locked = false, scale = 1}
 		},
 		profile = {
 			spellname = &quot;&quot;,</diff>
      <filename>ControlFreak.lua</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>badb29e85e3e9e5858cfc2b04f4846aa892ac297</id>
    </parent>
  </parents>
  <author>
    <name>Tekkub</name>
    <email>tekkub@gmail.com</email>
  </author>
  <url>http://github.com/tekkub/controlfreak/commit/69842986ee7b7185a2de267b733b09f89b35e507</url>
  <id>69842986ee7b7185a2de267b733b09f89b35e507</id>
  <committed-date>2008-06-08T17:14:45-07:00</committed-date>
  <authored-date>2008-06-08T17:14:45-07:00</authored-date>
  <message>Add option to scale frame</message>
  <tree>065c0def28609ab3c83439c06334b466326ca934</tree>
  <committer>
    <name>Tekkub</name>
    <email>tekkub@gmail.com</email>
  </committer>
</commit>
