blob: cea793f2305b8072b93a42042cac0b6feddffe65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
#ifdef HAVE_CONFIG_H
# include "../config.h"
#endif // HAVE_CONFIG_H
#include "surface.hh"
#include "display.hh"
namespace otk {
Surface::Surface()
: _size(1, 1),
_pm(None)
{
}
Surface::Surface(const Point &size)
: _size(size),
_pm(None)
{
}
Surface::~Surface()
{
if (_pm != None) XFreePixmap(**display, _pm);
}
void Surface::setSize(int w, int h)
{
_size.setPoint(w, h);
}
}
|