Skip to content

Commit

Permalink
Re-enable map borders.
Browse files Browse the repository at this point in the history
  • Loading branch information
lipk committed Jul 17, 2014
1 parent 77db658 commit 5032cf3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/display.cpp
Expand Up @@ -1873,7 +1873,7 @@ void display::announce(const std::string& message, const SDL_Color& color)
}


void display::draw_border(const map_location& /*loc*/, const int /*xpos*/, const int /*ypos*/)
void display::draw_border(const map_location& loc, const int xpos, const int ypos)
{
#ifdef SDL_GPU
/**
Expand All @@ -1883,7 +1883,7 @@ void display::draw_border(const map_location& /*loc*/, const int /*xpos*/, const
*/

// First handle the corners :
/*if(loc.x == -1 && loc.y == -1) { // top left corner
if(loc.x == -1 && loc.y == -1) { // top left corner
drawing_buffer_add(LAYER_BORDER, loc, xpos + zoom_/4, ypos,
image::get_texture(theme_.border().corner_image_top_left, image::SCALED_TO_ZOOM));
} else if(loc.x == get_map().w() && loc.y == -1) { // top right corner
Expand Down Expand Up @@ -1934,7 +1934,7 @@ void display::draw_border(const map_location& /*loc*/, const int /*xpos*/, const
drawing_buffer_add(LAYER_BORDER, loc, xpos, ypos + zoom_/2,
image::get_texture(theme_.border().border_image_bottom_odd, image::SCALED_TO_ZOOM));
}
}*/
}
#else
/**
* at the moment the border must be between 0.0 and 0.5
Expand Down

0 comments on commit 5032cf3

Please sign in to comment.