[Scummvm-cvs-logs] CVS: scummvm/backends/dc dc.h,1.21,1.22 dcmain.cpp,1.22,1.23
Marcus Comstedt
marcus_c at users.sourceforge.net
Sat Mar 13 07:12:30 CET 2004
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/backends/dc audio.cpp,1.11,1.12 dc.h,1.20,1.21 dcmain.cpp,1.21,1.22 display.cpp,1.17,1.18 input.cpp,1.15,1.16
- Next message: [Scummvm-cvs-logs] CVS: web press.php,1.20,1.21
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/backends/dc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21262
Modified Files:
dc.h dcmain.cpp
Log Message:
Features.
Index: dc.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/dc/dc.h,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- dc.h 13 Mar 2004 13:41:50 -0000 1.21
+++ dc.h 13 Mar 2004 14:00:44 -0000 1.22
@@ -31,6 +31,15 @@
OSystem_Dreamcast();
+ // Determine whether the backend supports the specified feature.
+ bool hasFeature(Feature f);
+
+ // En-/disable the specified feature.
+ void setFeatureState(Feature f, bool enable);
+
+ // Query the state of the specified feature. For example, test whether
+ bool getFeatureState(Feature f);
+
// Retrieve a list of all graphics modes supported by this backend.
const GraphicsMode *getSupportedGraphicsModes() const;
Index: dcmain.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/dc/dcmain.cpp,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- dcmain.cpp 13 Mar 2004 13:41:50 -0000 1.22
+++ dcmain.cpp 13 Mar 2004 14:00:44 -0000 1.23
@@ -143,6 +143,47 @@
}
+/* Features */
+bool OSystem_Dreamcast::hasFeature(Feature f)
+{
+ switch(f) {
+ case kFeatureAspectRatioCorrection:
+ case kFeatureVirtualKeyboard:
+ return true;
+ default:
+ return false;
+ }
+}
+
+void OSystem_Dreamcast::setFeatureState(Feature f, bool enable)
+{
+ switch(f) {
+ case kFeatureAspectRatioCorrection:
+ /* FIXME */
+ break;
+ case kFeatureVirtualKeyboard:
+ /* FIXME */
+ break;
+ default:
+ break;
+ }
+}
+
+bool OSystem_Dreamcast::getFeatureState(Feature f)
+{
+ switch(f) {
+ case kFeatureAspectRatioCorrection:
+ /* FIXME */
+ return false;
+ case kFeatureVirtualKeyboard:
+ /* FIXME */
+ return false;
+ default:
+ return false;
+ }
+}
+
+
void dc_init_hardware()
{
#ifndef NOSERIAL
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/backends/dc audio.cpp,1.11,1.12 dc.h,1.20,1.21 dcmain.cpp,1.21,1.22 display.cpp,1.17,1.18 input.cpp,1.15,1.16
- Next message: [Scummvm-cvs-logs] CVS: web press.php,1.20,1.21
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list