summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2017-01-23 22:28:33 -0600
committerepoch <epoch@hacking.allowed.org>2017-01-23 22:28:33 -0600
commitb17e3d4054cee8afca4263fc5e6dd477ba6579f3 (patch)
tree4313d11312b18c2f668862a851e6659b54aaaaf9 /src
parentace9f98d3d77ce69a3b8501dbecd79cae1b5b215 (diff)
downloadhackvr-b17e3d4054cee8afca4263fc5e6dd477ba6579f3.tar.gz
hackvr-b17e3d4054cee8afca4263fc5e6dd477ba6579f3.zip
commented out some sky stuff and fixed the split-screen drawing stuff failing due to bad clipping rectangle values.
Diffstat (limited to 'src')
-rw-r--r--src/graphics_x11.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/graphics_x11.c b/src/graphics_x11.c
index a1cf145..dad8b05 100644
--- a/src/graphics_x11.c
+++ b/src/graphics_x11.c
@@ -26,12 +26,12 @@
//TODO: will have to make some pixmaps get resized when the window does.
//for now set them to be as big as you think you'll ever resize the window to.
-#define SKYRULE 90
-#define SKYW (WIDTH*5)
-#define SKYH (HEIGHT/2)
+//#define SKYRULE 90
+//#define SKYW (WIDTH*5)
+//#define SKYH (HEIGHT/2)
-Pixmap skypixmap;
-char sky[SKYH][SKYW];
+//Pixmap skypixmap;
+//char sky[SKYH][SKYW];
extern struct global global;
extern struct gra_global gra_global;
@@ -120,8 +120,8 @@ void clear_backbuffer() {
void set_clipping_rectangle(int x,int y,int width,int height) {
XRectangle cliprect;
- cliprect.x=x;
- cliprect.y=y;
+ cliprect.x=0;
+ cliprect.y=0;
cliprect.width=width;
cliprect.height=height;
XSetClipRectangles(x11_global.dpy,x11_global.backgc,x,y,&cliprect,1,Unsorted);
@@ -133,9 +133,9 @@ void red_and_blue_magic() {
XChangeGC(x11_global.dpy,x11_global.backgc,GCFunction,&gcval);
}
-void draw_sky() {
- XCopyArea(x11_global.dpy,skypixmap,x11_global.backbuffer,x11_global.backgc,((camera.yr.d*5)+SKYW)%SKYW,0,WIDTH,gra_global.height/2,0,0);
-}
+//void draw_sky() {
+// XCopyArea(x11_global.dpy,skypixmap,x11_global.backbuffer,x11_global.backgc,((camera.yr.d*5)+SKYW)%SKYW,0,WIDTH,gra_global.height/2,0,0);
+//}
void set_color() {
XSetForeground(x11_global.dpy,x11_global.backgc,x11_global.green.pixel);