shithub: rott

Download patch

ref: afd6ef7e5385f2d2706ca20381d9e18b86827619
parent: 18c8ce9fd5cf08c0372f5278fdb6a881b5b84c6b
author: levesqu8 <levesqu8@msu.edu>
date: Wed Jan 3 14:58:32 EST 2018

1280x1024 also functional!

--- a/rott/engine.c
+++ b/rott/engine.c
@@ -39,7 +39,7 @@
 =============================================================================
 */
 //wallcast_t posts[642];//bna++
-wallcast_t posts[1024+4];//bna++
+wallcast_t posts[1280+4];//bna++
 //wallcast_t posts[321];
 int lasttilex;
 int lasttiley;
--- a/rott/engine.h
+++ b/rott/engine.h
@@ -38,7 +38,7 @@
     int      posttype;
     int      alttile;
 } wallcast_t;
-extern wallcast_t posts[1024+4];//bna++ JUST MAKE IT MAX RES
+extern wallcast_t posts[1280+4];//bna++ JUST MAKE IT MAX RES
 //extern wallcast_t posts[642];//bna++
 //extern wallcast_t posts[321];
 
--- a/rott/modexlib.c
+++ b/rott/modexlib.c
@@ -53,7 +53,7 @@
 
 int    linewidth;
 //int    ylookup[MAXSCREENHEIGHT];
-int    ylookup[768];//just set to max res
+int    ylookup[1024];//just set to max res
 byte  *page1start;
 byte  *page2start;
 byte  *page3start;
--- a/rott/modexlib.h
+++ b/rott/modexlib.h
@@ -111,7 +111,7 @@
 extern  boolean StretchScreen;//bn�++
 
 //extern  int      ylookup[MAXSCREENHEIGHT];      // Table of row offsets
-extern  int      ylookup[768];      // just set to max res
+extern  int      ylookup[1024];      // just set to max res
 extern  int      linewidth;
 extern  byte    *page1start;
 extern  byte    *page2start;
--- a/rott/rt_floor.c
+++ b/rott/rt_floor.c
@@ -76,7 +76,7 @@
 static byte     *floor;
 static byte     *ceiling;
 //static int xstarts[MAXVIEWHEIGHT];
-static int xstarts[768];//set to max hight res
+static int xstarts[1024];//set to max hight res
 static byte * skysegs[MAXSKYSEGS];
 static byte * skydata[MAXSKYDATA];
 static int      horizonheight;
--- a/rott/rt_view.c
+++ b/rott/rt_view.c
@@ -87,7 +87,7 @@
 byte * greenmap;
 byte * playermaps[MAXPLAYERCOLORS];
 //short  pixelangle[MAXVIEWWIDTH];
-short  pixelangle[1024];
+short  pixelangle[1280];
 byte   gammatable[GAMMAENTRIES];
 int    gammaindex;
 int    focalwidth=160;
@@ -443,6 +443,42 @@
         viewsizes[height++]= 1024; 
         viewsizes[height++]= 768;
 	}
+    else if ( iGLOBAL_SCREENWIDTH == 1280)
+    {
+        height = 0;
+        viewsizes[height++]= 1280; 
+        viewsizes[height++]= 1024;
+        
+        viewsizes[height++]= 1280; 
+        viewsizes[height++]= 1024;
+        
+        viewsizes[height++]= 1280; 
+        viewsizes[height++]= 1024;
+        
+        viewsizes[height++]= 1280; 
+        viewsizes[height++]= 1024;
+        
+        viewsizes[height++]= 1280; 
+        viewsizes[height++]= 1024;
+        
+        viewsizes[height++]= 1280; 
+        viewsizes[height++]= 1024;
+        
+        viewsizes[height++]= 1280; 
+        viewsizes[height++]= 1024;
+        
+        viewsizes[height++]= 1280; 
+        viewsizes[height++]= 1024;
+        
+        viewsizes[height++]= 1280; 
+        viewsizes[height++]= 1024;
+        
+        viewsizes[height++]= 1280; 
+        viewsizes[height++]= 1024;
+        
+        viewsizes[height++]= 1280; 
+        viewsizes[height++]= 1024;
+    }
 
 
     if ((size<0) || (size>=MAXVIEWSIZES)) { //bna added
--- a/rott/rt_view.h
+++ b/rott/rt_view.h
@@ -76,7 +76,7 @@
 
 extern byte * playermaps[MAXPLAYERCOLORS];
 //extern short  pixelangle[MAXVIEWWIDTH];
-extern short  pixelangle[1024];
+extern short  pixelangle[1280];
 extern byte   gammatable[GAMMAENTRIES];
 extern int    gammaindex;
 extern byte   uniformcolors[MAXPLAYERCOLORS];