Sun 14 May 2017 09:32:49 AM UTC, comment #3:
Thanks Koop.
The src/bigmap.cpp file in git has changed in git, so your patch doesn't apply cleanly, but I applied it the best that I could. Thanks for the help!
I hope you will try to compile against what's in git as it's almost ready for release.
Here's what the patch ended up looking like:
diff --git a/src/bigmap.cpp b/src/bigmap.cpp
index 223390d..d6cd522 100644
--- a/src/bigmap.cpp
+++ b/src/bigmap.cpp
@@ -70,7 +70,7 @@ BigMap::BigMap(bool headless)
BigMap::~BigMap()
{
- if (buffer == true)
+ if (buffer)
buffer.clear();
delete d_renderer;
@@ -112,7 +112,7 @@ void BigMap::set_view(Rectangle new_view)
// this represents a 1 tile border around the outside of the picture.
// it gets rid of the black border.
- if (buffer == true)
+ if (buffer)
buffer.clear();
buffer_view.dim = view.dim + Vector<int>(2, 2);
@@ -122,7 +122,7 @@ void BigMap::set_view(Rectangle new_view)
buffer_gc = Cairo::Context::create(buffer);
//now create the part that will go out to the gtk::image
- if (outgoing == true)
+ if (outgoing)
outgoing.clear();
outgoing = Cairo::Surface::create(buffer, Cairo::CONTENT_COLOR_ALPHA, image.get_width(), image.get_height());
|