summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2017-11-16 06:11:47 -0600
committerepoch <epoch@hacking.allowed.org>2017-11-16 06:11:47 -0600
commit725017419d8e5e6afce1f645587d9cb1c670290e (patch)
tree51fedd4138579bde679ad96c3f1e4e99cf42d618
parent030f35b270ac26881c4e951d52db73908964074c (diff)
downloadhackvr-725017419d8e5e6afce1f645587d9cb1c670290e.tar.gz
hackvr-725017419d8e5e6afce1f645587d9cb1c670290e.zip
got rid of the distance based shading again to make font tests less annoying. increased some arbitrary limits because I was too lazy to come up with a graceful way to handle not enough space.
-rw-r--r--src/common.h4
-rw-r--r--src/config.h2
-rw-r--r--src/graphics_cs_x11.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/common.h b/src/common.h
index bdabb4f..135fbc2 100644
--- a/src/common.h
+++ b/src/common.h
@@ -82,11 +82,11 @@ struct global {
char *user;
char headless;
char debug;//flag
- char selected_object[256];//meh
+ char selected_object[2000];//meh
real mmz;
struct c3_shape *shape[SHAPES];
int shapes;
- c3_group_rot_t *group_rot[256];//meh
+ c3_group_rot_t *group_rot[2000];//meh
c3_group_rot_t camera;
real zoom;
int derp;
diff --git a/src/config.h b/src/config.h
index 48ae062..cae9a3f 100644
--- a/src/config.h
+++ b/src/config.h
@@ -17,7 +17,7 @@
#define HEIGHT 3000
#define DEFAULT_MINIMAP 0
#define FORCE_REDRAW 1
-#define MAXSHAPES 3000
+#define MAXSHAPES 30000
#define ROTATE_STEP 5
#endif
diff --git a/src/graphics_cs_x11.c b/src/graphics_cs_x11.c
index a9c3af3..9a18738 100644
--- a/src/graphics_cs_x11.c
+++ b/src/graphics_cs_x11.c
@@ -62,8 +62,8 @@ void calculate_shape_color(c3_s_t s,real d) {
*/
void set_color_based_on_distance(real d) {
int i=100-((int)((d+100.0) * 16.0) % 100);
- XSetForeground(x11_global.dpy,x11_global.backgc,x11_global.colors[i].pixel);
- //XSetForeground(x11_global.dpy,x11_global.backgc,x11_global.colors[99].pixel);
+ //XSetForeground(x11_global.dpy,x11_global.backgc,x11_global.colors[i].pixel);
+ XSetForeground(x11_global.dpy,x11_global.backgc,x11_global.colors[99].pixel);
}
void draw_cs_line(cs_t p1,cs_t p2) {