[gnome-chess] Remove face-to-face board orientation



commit 33007005e0895daa943c74e1b9b2ee1f8f8354f8
Author: Michael Catanzaro <mike catanzaro gmail com>
Date:   Sat Jul 27 09:21:54 2013 -0500

    Remove face-to-face board orientation
    
    This isn't a board orientation, it's a piece orientation.  It actually
    silently forces the "White" board orientation.
    
    It could be implemented separately as a checkbox, but I don't think we
    want to keep this "feature."
    
    Also, this option is broken in 3D mode.  (Though as a checkbox, it could
    be insensitive in 3D mode.)

 data/org.gnome.gnome-chess.gschema.xml.in |    1 -
 data/preferences.ui                       |    4 ----
 src/chess-scene.vala                      |    1 -
 src/chess-view-2d.vala                    |    3 ---
 4 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/data/org.gnome.gnome-chess.gschema.xml.in b/data/org.gnome.gnome-chess.gschema.xml.in
index 7f2f47e..32c9c32 100644
--- a/data/org.gnome.gnome-chess.gschema.xml.in
+++ b/data/org.gnome.gnome-chess.gschema.xml.in
@@ -12,7 +12,6 @@
     <value value="1" nick="black"/>
     <value value="2" nick="human"/>
     <value value="3" nick="current"/>
-    <value value="4" nick="facetoface"/>
   </enum>
 
   <enum id="org.gnome.gnome-chess.Difficulty">
diff --git a/data/preferences.ui b/data/preferences.ui
index 4432970..f657b8c 100644
--- a/data/preferences.ui
+++ b/data/preferences.ui
@@ -150,10 +150,6 @@
         <col id="0" translatable="yes" context="chess-side" comments="Preferences Dialog: Combo box entry 
for setting the board orientation to the side the current active player is on">Current Player</col>
         <col id="1">current</col>
       </row>
-      <row>
-        <col id="0" translatable="yes" context="chess-side" comments="Preferences Dialog: Combo box entry 
for setting the board orientation face to face mode where opponents are looking at the same screen from 
opposite sides (e.g. with a tablet)">Face to Face</col>
-        <col id="1">facetoface</col>
-      </row>
     </data>
   </object>
   <object class="GtkListStore" id="piece_style_model">
diff --git a/src/chess-scene.vala b/src/chess-scene.vala
index 1a446a6..a0407a8 100644
--- a/src/chess-scene.vala
+++ b/src/chess-scene.vala
@@ -161,7 +161,6 @@ public class ChessScene : Object
              {
              default:
              case "white":
-             case "facetoface":
                  return 0.0;
              case "black":
                  return 180.0;
diff --git a/src/chess-view-2d.vala b/src/chess-view-2d.vala
index b0daa23..0f63d4d 100644
--- a/src/chess-view-2d.vala
+++ b/src/chess-view-2d.vala
@@ -239,9 +239,6 @@ private class ChessView2D : ChessView
 
     private void draw_piece (Cairo.Context c, Cairo.Surface surface, int size, ChessPiece piece, double 
alpha)
     {
-        if (scene.board_side == "facetoface" && piece.color == Color.BLACK)
-            c.rotate (Math.PI);
-
         c.translate (-size / 2, -size / 2);
 
         int offset = piece.type;


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