[Scummvm-cvs-logs] CVS: scummvm/backends/wince CELauncherDialog.h,1.1,1.1.2.1 CELauncherDialog.cpp,1.2,1.2.2.1
Nicolas Bacca
arisme at users.sourceforge.net
Wed Mar 3 14:49:05 CET 2004
- Previous message: [Scummvm-cvs-logs] CVS: residual engine.cpp,1.19,1.20 engine.h,1.6,1.7 lua.cpp,1.41,1.42 lua.h,1.2,1.3 smush.cpp,1.27,1.28 smush.h,1.12,1.13
- Next message: [Scummvm-cvs-logs] CVS: scummvm/backends/wince wince-sdl.cpp,1.4.2.5,1.4.2.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/backends/wince
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7503
Modified Files:
Tag: branch-0-6-0
CELauncherDialog.h CELauncherDialog.cpp
Log Message:
Add SDL information to track driver problems
Index: CELauncherDialog.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/wince/CELauncherDialog.h,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -u -d -r1.1 -r1.1.2.1
--- CELauncherDialog.h 26 Jan 2004 08:20:26 -0000 1.1
+++ CELauncherDialog.h 3 Mar 2004 22:27:47 -0000 1.1.2.1
@@ -32,6 +32,7 @@
class CELauncherDialog : public GUI::LauncherDialog {
public:
CELauncherDialog(GameDetector &detector);
+ virtual void handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 data);
protected:
void addGame();
void addCandidate(String &path, DetectedGameList &candidates);
Index: CELauncherDialog.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/wince/CELauncherDialog.cpp,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -u -d -r1.2 -r1.2.2.1
--- CELauncherDialog.cpp 5 Feb 2004 00:19:53 -0000 1.2
+++ CELauncherDialog.cpp 3 Mar 2004 22:27:47 -0000 1.2.2.1
@@ -20,10 +20,15 @@
*/
#include "stdafx.h"
+
+#include "wince-sdl.h"
+
#include "CELauncherDialog.h"
#include "base/engine.h"
+#include "gui/newgui.h"
+#include "gui/widget.h"
#include "gui/browser.h"
#include "gui/message.h"
@@ -32,10 +37,37 @@
using namespace GUI;
using namespace Common;
+class CEAboutDialog : public Dialog {
+public:
+ CEAboutDialog::CEAboutDialog()
+ : Dialog(10, 60, 300, 77) {
+ char tempo[100];
+
+ addButton((_w - kButtonWidth) / 2, 45, "OK", kCloseCmd, '\r'); // Close dialog - FIXME
+
+ Common::String videoDriver("Using SDL driver ");
+ SDL_VideoDriverName(tempo, sizeof(tempo));
+ videoDriver += tempo;
+ new StaticTextWidget(this, 0, 10, _w, kLineHeight, videoDriver, kTextAlignCenter);
+ Common::String displayInfos("Display ");
+ sprintf(tempo, "%dx%d", GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN));
+ displayInfos += tempo;
+ new StaticTextWidget(this, 0, 20, _w, kLineHeight, displayInfos, kTextAlignCenter);
+ }
+};
+
CELauncherDialog::CELauncherDialog(GameDetector &detector) : GUI::LauncherDialog(detector) {
}
+void CELauncherDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data) {
+ LauncherDialog::handleCommand(sender, cmd, data);
+ if (cmd == 'ABOU') {
+ CEAboutDialog about;
+ about.runModal();
+ }
+}
+
void CELauncherDialog::addCandidate(String &path, DetectedGameList &candidates) {
int idx = -1;
DetectedGame result;
@@ -47,7 +79,7 @@
idx = 0;
else {
char candidateName[100];
- int i;
+ unsigned int i;
for (i=path.size() - 2; i && path[i] != '\\'; i--);
strcpy(candidateName, &path[i + 1]);
candidateName[strlen(candidateName) - 1] = '\0';
- Previous message: [Scummvm-cvs-logs] CVS: residual engine.cpp,1.19,1.20 engine.h,1.6,1.7 lua.cpp,1.41,1.42 lua.h,1.2,1.3 smush.cpp,1.27,1.28 smush.h,1.12,1.13
- Next message: [Scummvm-cvs-logs] CVS: scummvm/backends/wince wince-sdl.cpp,1.4.2.5,1.4.2.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list