From 99cd843fc6dc7a7f55b6c90fd1162f233853aad2 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 8 Feb 2003 07:33:48 +0000 Subject: Brand spankin new widgets for otk (Label and Button). Add a new Size class. Rect, Point, and Size are immutable classes. Size uses *UNSIGNED* ints. This is causing me headaches * a bajillion right now, so we'll see about that. --- otk/rendercontrol.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'otk/rendercontrol.cc') diff --git a/otk/rendercontrol.cc b/otk/rendercontrol.cc index aae6c76b..bf69a4e5 100644 --- a/otk/rendercontrol.cc +++ b/otk/rendercontrol.cc @@ -9,6 +9,7 @@ #include "pseudorendercontrol.hh" #include "rendertexture.hh" #include "rendercolor.hh" +#include "renderstyle.hh" #include "display.hh" #include "screeninfo.hh" #include "surface.hh" @@ -50,15 +51,11 @@ RenderControl::RenderControl(int screen) : _screen(screen) { printf("Initializing RenderControl\n"); - - } RenderControl::~RenderControl() { printf("Destroying RenderControl\n"); - - } void RenderControl::drawRoot(const RenderColor &color) const @@ -120,7 +117,7 @@ void RenderControl::drawSolidBackground(Surface& sf, sf.setPixmap(texture.color()); - int width = sf.width(), height = sf.height(); + int width = sf.size().width(), height = sf.size().height(); int left = 0, top = 0, right = width - 1, bottom = height - 1; if (texture.interlaced()) -- cgit v1.2.3