From 725017419d8e5e6afce1f645587d9cb1c670290e Mon Sep 17 00:00:00 2001 From: epoch Date: Thu, 16 Nov 2017 06:11:47 -0600 Subject: 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. --- src/common.h | 4 ++-- src/config.h | 2 +- src/graphics_cs_x11.c | 4 ++-- 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) { -- cgit v1.2.3