X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fsurface.cc;h=7d7c0c53b5831607cae40699e6b1a4f537594dcb;hb=43f958996b3e5a6af08c1fd7aded883ba5ef5355;hp=aabbf85af8bc4d9042734367f6e8d666cbc6fc06;hpb=99cd843fc6dc7a7f55b6c90fd1162f233853aad2;p=chaz%2Fopenbox diff --git a/otk/surface.cc b/otk/surface.cc index aabbf85a..7d7c0c53 100644 --- a/otk/surface.cc +++ b/otk/surface.cc @@ -1,8 +1,6 @@ // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*- -#ifdef HAVE_CONFIG_H -# include "../config.h" -#endif // HAVE_CONFIG_H +#include "config.h" #include "surface.hh" #include "display.hh" @@ -39,8 +37,8 @@ void Surface::setPixmap(const RenderColor &color) void Surface::setPixmap(XImage *image) { - assert((unsigned)image->width == _size.width()); - assert((unsigned)image->height == _size.height()); + assert(image->width == _size.width()); + assert(image->height == _size.height()); if (_pixmap == None) createObjects();