shithub: riscv

Download patch

ref: 98f4157b5a2f9bce37939e2ea807b631943d969c
parent: e6d579525f0276c465c54b97be38b2173111f42a
author: cinap_lenrek <cinap_lenrek@localhost>
date: Fri May 27 16:34:52 EDT 2011

games/doom: probing

--- a/sys/src/games/doom/doomdef.h
+++ b/sys/src/games/doom/doomdef.h
@@ -109,13 +109,8 @@
 // Defines suck. C sucks.
 // C++ might sucks for OOP, but it sure is a better C.
 // So there.
-#define SCREENWIDTH  320
-//SCREEN_MUL*BASE_WIDTH //320
-#define SCREENHEIGHT 200
-//(int)(SCREEN_MUL*BASE_WIDTH*INV_ASPECT_RATIO) //200
-
-
-
+#define SCREENWIDTH  (SCREEN_MUL*BASE_WIDTH)
+#define SCREENHEIGHT ((int)(SCREEN_MUL*BASE_WIDTH*INV_ASPECT_RATIO))
 
 // The maximum number of players, multiplayer/networking.
 #define MAXPLAYERS		4
--- a/sys/src/games/doom/m_menu.c
+++ b/sys/src/games/doom/m_menu.c
@@ -1114,24 +1114,19 @@
 
 
 
-void M_ChangeDetail(int /*choice*/)
+void M_ChangeDetail(int)
 {
-    detailLevel = 1 - detailLevel;
+	return;
 
-    // FIXME - does not work. Remove anyway?
-    fprintf( stderr, "M_ChangeDetail: low detail mode n.a.\n");
-
-    return;
-    
-    /*R_SetViewSize (screenblocks, detailLevel);
-
-    if (!detailLevel)
-	players[consoleplayer].message = DETAILHI;
-    else
-	players[consoleplayer].message = DETAILLO;*/
+	/* does not work
+	detailLevel = 1 - detailLevel;
+	R_SetViewSize (screenblocks, detailLevel);
+	if (!detailLevel)
+		players[consoleplayer].message = DETAILHI;
+	else
+		players[consoleplayer].message = DETAILLO;
+	*/
 }
-
-
 
 
 void M_SizeDisplay(int choice)