Skip to content

Commit

Permalink
WINCE: Fix shadow variable warnings associated with GUIElement classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
digitall committed Dec 16, 2012
1 parent c93a7c3 commit 2cbb89f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions backends/platform/wince/CEgui/GUIElement.cpp
Expand Up @@ -98,19 +98,19 @@ bool GUIElement::drawn() {
return _drawn;
}

int GUIElement::x() {
int GUIElement::getX() {
return _x;
}

int GUIElement::y() {
int GUIElement::getY() {
return _y;
}

int GUIElement::width() {
int GUIElement::getWidth() {
return _width;
}

int GUIElement::height() {
int GUIElement::getHeight() {
return _height;
}

Expand Down
8 changes: 4 additions & 4 deletions backends/platform/wince/CEgui/GUIElement.h
Expand Up @@ -40,10 +40,10 @@ class GUIElement {
virtual bool draw(SDL_Surface *surface);
virtual ~GUIElement();
void move(int x, int y);
int width();
int height();
int x();
int y();
int getWidth();
int getHeight();
int getX();
int getY();
virtual bool action(int x, int y, bool pushed) = 0;
bool visible();
bool drawn();
Expand Down
8 changes: 4 additions & 4 deletions backends/platform/wince/CEgui/ToolbarHandler.cpp
Expand Up @@ -96,10 +96,10 @@ bool ToolbarHandler::draw(SDL_Surface *surface, SDL_Rect *rect) {
if (_active) {
bool result = _active->draw(surface);
if (result) {
rect->x = _active->x();
rect->y = _active->y();
rect->w = _active->width();
rect->h = _active->height();
rect->x = _active->getX();
rect->y = _active->getY();
rect->w = _active->getWidth();
rect->h = _active->getHeight();
}
return result;
} else
Expand Down

0 comments on commit 2cbb89f

Please sign in to comment.