-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: hackvr
action: commit
revision:
path_from:
revision_from: b17e3d4054cee8afca4263fc5e6dd477ba6579f3:
path_to:
revision_to:

git.thebackupbox.net

hackvr

git://git.thebackupbox.net/hackvr

commit b17e3d4054cee8afca4263fc5e6dd477ba6579f3
Author: epoch <epoch@hacking.allowed.org>
Date:   Mon Jan 23 22:28:33 2017 -0600

    commented out some sky stuff and fixed the split-screen drawing stuff failing due to bad clipping rectangle values.

diff --git a/src/graphics_x11.c b/src/graphics_x11.c

index a1cf145b0e3927af2dd70eea29fb7068888a10f7..

index ..dad8b055c513ac3efb435b6e19b1423a522e833b 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);

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 17:01:30 2024