git.cweiske.de
/
enigma2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
WLAN: fix inversed logic for WPA2 vs. WPA/WPA2
[enigma2.git]
/
lib
/
gdi
/
gmaindc.cpp
1
#include <lib/gdi/gmaindc.h>
2
3
gMainDC *gMainDC::m_instance;
4
5
ePtr<gMainDC> NewgMainDCPtr(void)
6
{
7
ePtr<gMainDC> ptr;
8
gMainDC::getInstance(ptr);
9
return ptr;
10
}
11
12
gMainDC::gMainDC()
13
{
14
ASSERT(m_instance == 0);
15
m_instance = this;
16
}
17
18
gMainDC::gMainDC(gPixmap *pixmap) : gDC(pixmap)
19
{
20
ASSERT(m_instance == 0);
21
m_instance = this;
22
}
23
24
gMainDC::~gMainDC()
25
{
26
m_instance = 0;
27
}
28