From b17e3d4054cee8afca4263fc5e6dd477ba6579f3 Mon Sep 17 00:00:00 2001 From: epoch Date: Mon, 23 Jan 2017 22:28:33 -0600 Subject: commented out some sky stuff and fixed the split-screen drawing stuff failing due to bad clipping rectangle values. --- src/graphics_x11.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/graphics_x11.c') 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); -- cgit v1.2.3