X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fmain.c;h=bebba84ccc86bfc4d44f8800a00545defd562b67;hb=HEAD;hp=bbe64fd6738ea7b008f1cf82fd3287845335b5ef;hpb=93c370a115018efcd9cadedbb5a9885220176c4c;p=voxscape diff --git a/src/main.c b/src/main.c index bbe64fd..bebba84 100644 --- a/src/main.c +++ b/src/main.c @@ -82,7 +82,6 @@ int init(void) return -1; } vox_framebuf(vox, FB_W, FB_H, fb); - vox_proj(vox, 140, 45, 1, 300); vox_fog(vox, 260, COLOR_HORIZON); vox_filter(vox, hfilt, cfilt); @@ -156,6 +155,10 @@ void idle(void) void reshape(int x, int y) { + float aspect = (float)x / y; + + vox_proj(vox, 140, 40 * aspect, 1, 300); + glViewport(0, 0, x, y); win_width = x;