gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash ChangeLog utilities/processor.cpp


From: Benjamin Wolsey
Subject: [Gnash-commit] gnash ChangeLog utilities/processor.cpp
Date: Mon, 14 Apr 2008 08:37:15 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Benjamin Wolsey <bwy>   08/04/14 08:37:14

Modified files:
        .              : ChangeLog 
        utilities      : processor.cpp 

Log message:
                * utilities/processor.cpp: return some fake values for
                  System.capabilities requests.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.6267&r2=1.6268
http://cvs.savannah.gnu.org/viewcvs/gnash/utilities/processor.cpp?cvsroot=gnash&r1=1.96&r2=1.97

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.6267
retrieving revision 1.6268
diff -u -b -r1.6267 -r1.6268
--- ChangeLog   14 Apr 2008 08:36:18 -0000      1.6267
+++ ChangeLog   14 Apr 2008 08:37:14 -0000      1.6268
@@ -1,5 +1,10 @@
 2008-04-14 Benjamin Wolsey <address@hidden>
 
+       * utilities/processor.cpp: return some fake values for
+         System.capabilities requests.
+
+2008-04-14 Benjamin Wolsey <address@hidden>
+
        * server/asobj/System.cpp: add useCodepage and exactSettings
          getter-setters. The getters return the notionally correct
          values; setters are unimplemented. Pass screenDPI and

Index: utilities/processor.cpp
===================================================================
RCS file: /sources/gnash/gnash/utilities/processor.cpp,v
retrieving revision 1.96
retrieving revision 1.97
diff -u -b -r1.96 -r1.97
--- utilities/processor.cpp     8 Apr 2008 15:54:05 -0000       1.96
+++ utilities/processor.cpp     14 Apr 2008 08:37:14 -0000      1.97
@@ -145,24 +145,44 @@
 {
     log_debug(_("eventCallback: %s %s"), event, arg);
     
-    StringNoCaseEqual ncasecomp;  
-
     static bool mouseShown = true;
 
     // These should return "true" if the mouse was visible before
     // the call.
-    if ( ncasecomp(event, "Mouse.hide") ) {
+    if ( event == "Mouse.hide" ) {
         bool state = mouseShown;
         mouseShown = false;
         return state ? "true" : "false";
     }
 
-    if ( ncasecomp(event, "Mouse.show") ) {
+    if ( event == "Mouse.show" ) {
         bool state = mouseShown;
         mouseShown = true;
         return state ? "true" : "false" ;
     }
     
+    // Some fake values for consistent test results.
+    
+    if ( event == "System.capabilities.screenResolutionX" ) {
+        return "800";
+    }
+
+    if ( event == "System.capabilities.screenResolutionY" ) {
+        return "640";
+    } 
+
+    if ( event == "System.capabilities.screenDPI" ) {
+        return "72";
+    }        
+
+    if ( event == "System.capabilities.screenColor" ) {
+        return "Color";
+    } 
+
+    if ( event == "System.capabilities.playerType" ) {
+        return "StandAlone";
+    } 
+
     return "";
 
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]