From ba627aebb20e19b800133abe24fb7d9e650055c3 Mon Sep 17 00:00:00 2001 From: drumsetmonkey Date: Thu, 31 Mar 2016 08:11:07 -0400 Subject: Fixed white border around background --- include/entities.hpp | 4 ++-- src/world.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) 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(); -- cgit v1.2.3