diff options
author | rubidium <rubidium@openttd.org> | 2009-03-21 19:31:47 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-03-21 19:31:47 +0000 |
commit | 93fe44a3c561e357313af0f8332a697b46812474 (patch) | |
tree | 815d6455f0947e44d67f175b86832b1932c3e96b /src/widgets/dropdown_type.h | |
parent | 8a758beec30dcf3c43d69d5adafbac59f296b9f1 (diff) | |
download | openttd-93fe44a3c561e357313af0f8332a697b46812474.tar.xz |
(svn r15783) -Codechange: make the dropdown draw code pass around the left/right instead of the x and width to make drawing text at offsets easier.
Diffstat (limited to 'src/widgets/dropdown_type.h')
-rw-r--r-- | src/widgets/dropdown_type.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/widgets/dropdown_type.h b/src/widgets/dropdown_type.h index 607799656..594cabe7e 100644 --- a/src/widgets/dropdown_type.h +++ b/src/widgets/dropdown_type.h @@ -23,7 +23,7 @@ public: virtual bool Selectable() const { return false; } virtual uint Height(uint width) const { return 10; } virtual uint Width() const { return 0; } - virtual void Draw(int x, int y, uint width, uint height, bool sel, int bg_colour) const; + virtual void Draw(int left, int right, int top, int bottom, bool sel, int bg_colour) const; }; /** @@ -38,7 +38,7 @@ public: virtual bool Selectable() const { return true; } virtual uint Width() const; - virtual void Draw(int x, int y, uint width, uint height, bool sel, int bg_colour) const; + virtual void Draw(int left, int right, int top, int bottom, bool sel, int bg_colour) const; virtual StringID String() const { return this->string; } }; @@ -68,7 +68,7 @@ public: virtual bool Selectable() const { return true; } virtual uint Width() const; - virtual void Draw(int x, int y, uint width, uint height, bool sel, int bg_colour) const; + virtual void Draw(int left, int right, int top, int bottom, bool sel, int bg_colour) const; }; /** |