From: drumsetmonkey Date: Thu, 31 Mar 2016 12:11:07 +0000 (-0400) Subject: Fixed white border around background X-Git-Url: https://code.bitgloo.com/?a=commitdiff_plain;h=ba627aebb20e19b800133abe24fb7d9e650055c3;p=clyne%2Fgamedev.git Fixed white border around background --- diff --git a/include/entities.hpp b/include/entities.hpp index c62e625..e7864d0 100644 --- a/include/entities.hpp +++ b/include/entities.hpp @@ -2,9 +2,9 @@ #define ENTITIES_H #include -#include +#include #include -#include +#include #include diff --git a/src/world.cpp b/src/world.cpp index 0cff9d4..f03606f 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -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();