JANITORIAL: Formatting fixes
This commit is contained in:
parent
6b5c5ae0d6
commit
1f18febade
5 changed files with 15 additions and 20 deletions
|
@ -38,7 +38,7 @@ namespace GUI {
|
|||
#ifndef DISABLE_LAUNCHERDISPLAY_GRID
|
||||
enum LauncherDisplayType {
|
||||
kLauncherDisplayList = 1,
|
||||
kLauncherDisplayGrid = 2,
|
||||
kLauncherDisplayGrid = 2
|
||||
};
|
||||
|
||||
enum {
|
||||
|
|
|
@ -58,8 +58,7 @@ void LauncherChooser::selectLauncher() {
|
|||
delete _impl;
|
||||
_impl = nullptr;
|
||||
|
||||
switch (requestedType)
|
||||
{
|
||||
switch (requestedType) {
|
||||
case kLauncherDisplayGrid:
|
||||
_impl = new LauncherGrid(Common::U32String("LauncherGrid"));
|
||||
break;
|
||||
|
|
|
@ -101,8 +101,8 @@ void GridItemWidget::drawWidget() {
|
|||
_activeEntry->title.substr(breakPoint), GUI::ThemeEngine::kStateEnabled ,Graphics::kTextAlignCenter,
|
||||
ThemeEngine::kTextInversionNone, 0, true, ThemeEngine::kFontStyleNormal,
|
||||
ThemeEngine::kFontColorAlternate, false);
|
||||
}
|
||||
else g_gui.theme()->drawSurface(Common::Point(_x, _y), _thumbGfx, true);
|
||||
} else
|
||||
g_gui.theme()->drawSurface(Common::Point(_x, _y), _thumbGfx, true);
|
||||
|
||||
// Draw Platform Icon
|
||||
if (_activeEntry->platform != kPlatformUnknown) {
|
||||
|
@ -195,8 +195,7 @@ GridItemTray::GridItemTray(GuiObject *boss, int x, int y, int w, int h, int entr
|
|||
}
|
||||
|
||||
void GridItemTray::handleCommand(CommandSender *sender, uint32 cmd, uint32 data) {
|
||||
switch (cmd)
|
||||
{
|
||||
switch (cmd) {
|
||||
case kPlayButtonCmd:
|
||||
close();
|
||||
sendCommand(kPlayButtonCmd, _entryID);
|
||||
|
@ -445,8 +444,7 @@ void GridWidget::reloadThumbnails() {
|
|||
_loadedSurfaces[path] = scSurf;
|
||||
surf->free();
|
||||
delete surf;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
_loadedSurfaces[path] = nullptr;
|
||||
}
|
||||
}
|
||||
|
@ -463,8 +461,7 @@ void GridWidget::loadFlagIcons() {
|
|||
_loadedSurfaces[path] = scGfx;
|
||||
gfx->free();
|
||||
delete gfx;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
_loadedSurfaces[path] = nullptr;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -55,12 +55,11 @@ enum {
|
|||
kLoadButtonCmd = 'LOAD',
|
||||
kOpenTrayCmd = 'OPTR',
|
||||
kItemClicked = 'LBX1',
|
||||
kItemDoubleClickedCmd = 'LBX2',
|
||||
kItemDoubleClickedCmd = 'LBX2'
|
||||
};
|
||||
|
||||
/* GridItemInfo */
|
||||
struct GridItemInfo
|
||||
{
|
||||
struct GridItemInfo {
|
||||
typedef Common::String String;
|
||||
|
||||
String engineid;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue