Browse Source

Remove hack for ImageAboutWindow size, no longer needed

gh-pages
falkTX 10 years ago
parent
commit
155746e053
1 changed files with 3 additions and 10 deletions
  1. +3
    -10
      dgl/src/ImageAboutWindow.cpp

+ 3
- 10
dgl/src/ImageAboutWindow.cpp View File

@@ -16,13 +16,6 @@

#include "../ImageAboutWindow.hpp"

// FIXME: 32bit hack
#if ! (defined (__LP64__) || defined (_LP64) || defined(WIN64) || defined(_WIN64) || defined(__WIN64__))
# define PAD_SIZE +1
#else
# define PAD_SIZE
#endif

START_NAMESPACE_DGL

// -----------------------------------------------------------------------
@@ -33,7 +26,7 @@ ImageAboutWindow::ImageAboutWindow(App& app, Window& parent, const Image& image)
fImgBackground(image)
{
Window::setResizable(false);
Window::setSize(image.getWidth(), image.getHeight() PAD_SIZE);
Window::setSize(image.getWidth(), image.getHeight());
Window::setTitle("About");
}

@@ -43,14 +36,14 @@ ImageAboutWindow::ImageAboutWindow(Widget* widget, const Image& image)
fImgBackground(image)
{
Window::setResizable(false);
Window::setSize(image.getWidth(), image.getHeight() PAD_SIZE);
Window::setSize(image.getWidth(), image.getHeight());
Window::setTitle("About");
}

void ImageAboutWindow::setImage(const Image& image)
{
fImgBackground = image;
Window::setSize(image.getWidth(), image.getHeight() PAD_SIZE);
Window::setSize(image.getWidth(), image.getHeight());
}

void ImageAboutWindow::onDisplay()


Loading…
Cancel
Save