WINCE: Run astyle over WinCE source files.

This commit is contained in:
Johannes Schickel 2011-03-09 03:02:46 +01:00
parent 438f2b2e1b
commit bd82ebd080
24 changed files with 298 additions and 303 deletions

View file

@ -113,7 +113,6 @@ void CELauncherDialog::addGame() {
ConfMan.flushToDisk();
updateListing();
draw();
}
else
} else
GUILauncherDialog::addGame();
}

View file

@ -45,9 +45,7 @@ bool GUIElement::setBackground(WORD backgroundReference) {
if (!_height && !_width) {
_height = _background->height();
_width = _background->width();
}
else
if (_background->height() != _height || _background->width() != _width) {
} else if (_background->height() != _height || _background->width() != _width) {
delete _background;
_background = NULL;
return false;
@ -74,8 +72,7 @@ bool GUIElement::draw(SDL_Surface *surface) {
_drawn = true;
return true;
}
else
} else
return false;
}

View file

@ -50,8 +50,7 @@ bool Panel::draw(SDL_Surface *surface) {
((GUIElement *)(iterator->_value))->draw(surface);
}
return true;
}
else
} else
return false;
}

View file

@ -31,7 +31,8 @@ namespace CEGUI {
const char KEYBOARD_MAPPING_ALPHA[][14] = { {"abcdefghijklm"}, {"nopqrstuvwxyz"} };
const char KEYBOARD_MAPPING_NUMERIC[][6] = { {"12345"}, {"67890"} };
const int KEYBOARD_MAPPING_SPECIAL[][3][2] = { { {1, SDLK_ESCAPE}, {224, SDLK_UP}, {32, SDLK_SPACE} },
{ {224,SDLK_LEFT}, {224,SDLK_DOWN}, {224,SDLK_RIGHT} } };
{ {224, SDLK_LEFT}, {224, SDLK_DOWN}, {224, SDLK_RIGHT} }
};
PanelKeyboard::PanelKeyboard(WORD reference) : Toolbar() {
setBackground(reference);
@ -62,10 +63,12 @@ bool PanelKeyboard::action(int x, int y, bool pushed) {
} else if (x >= 302 && x <= 316) {
if (y < _y + 20) {
// Backspace
keyAscii = VK_BACK; keyCode = keyAscii;
keyAscii = VK_BACK;
keyCode = keyAscii;
} else {
// Enter
keyAscii = 13; keyCode = 13;
keyAscii = 13;
keyCode = 13;
}
}

View file

@ -67,8 +67,7 @@ bool ToolbarHandler::action(int x, int y, bool pushed) {
return _active->action(x / 2, (y - _offset) / 2, pushed);
else
return _active->action(x, y - _offset, pushed);
}
else
} else
return false;
}

View file

@ -6,8 +6,7 @@
#include <stdlib.h>
#ifndef __MINGW32CE__
struct tm
{
struct tm {
short tm_year;
short tm_mon;
short tm_mday;

View file

@ -437,8 +437,7 @@ Common::String OSystem_WINCE3::getDefaultConfigFileName() {
OSystem_WINCE3::OSystem_WINCE3() : OSystem_SDL(),
_forcePanelInvisible(false)
{
_forcePanelInvisible(false) {
// Initialze File System Factory
_fsFactory = new WindowsFilesystemFactory();
_mixer = 0;