]> code.bitgloo.com Git - clyne/gamedev.git/commitdiff
Fixed white border around background
authordrumsetmonkey <abelleisle@roadrunner.com>
Thu, 31 Mar 2016 12:11:07 +0000 (08:11 -0400)
committerdrumsetmonkey <abelleisle@roadrunner.com>
Thu, 31 Mar 2016 12:11:07 +0000 (08:11 -0400)
include/entities.hpp
src/world.cpp

index c62e625acafcf379049cacbd97fc4e94d2e78b4c..e7864d0b50b57e61a0091cd7c904fe91d2b4d829 100644 (file)
@@ -2,9 +2,9 @@
 #define ENTITIES_H
 
 #include <common.hpp>
-#include <Quest.hpp>
+#include <quest.hpp>
 #include <inventory.hpp>
-#include <Texture.hpp>
+#include <texture.hpp>
 
 #include <sstream>
 
index 0cff9d48d2435b0587b1cd62bf725af95e9d1e6f..f03606f75d80317d3f56b14fdae58b7696e7fe87 100644 (file)
@@ -432,10 +432,10 @@ void World::draw(Player *p){
        safeSetColorA( 255, 255, 255, weather == WorldWeather::Snowy ? 150 : 255 - worldShade * 4);
 
        glBegin( GL_QUADS );
-               glTexCoord2i( 0, 0 ); glVertex2i( offset.x - SCREEN_WIDTH/2, SCREEN_HEIGHT );
-               glTexCoord2i( 1, 0 ); glVertex2i( offset.x + SCREEN_WIDTH/2, SCREEN_HEIGHT );
-               glTexCoord2i( 1, 1 ); glVertex2i( offset.x + SCREEN_WIDTH/2, 0 );
-               glTexCoord2i( 0, 1 ); glVertex2i( offset.x - SCREEN_WIDTH/2, 0 );
+               glTexCoord2i( 0, 0 ); glVertex2i( offset.x - SCREEN_WIDTH/2-5, SCREEN_HEIGHT );
+               glTexCoord2i( 1, 0 ); glVertex2i( offset.x + SCREEN_WIDTH/2+5, SCREEN_HEIGHT );
+               glTexCoord2i( 1, 1 ); glVertex2i( offset.x + SCREEN_WIDTH/2+5, 0 );
+               glTexCoord2i( 0, 1 ); glVertex2i( offset.x - SCREEN_WIDTH/2-5, 0 );
        glEnd();
 
        bgTex->bindNext();