git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b8c07c
)
add some assertions
author
Felix Domke
<tmbinc@2mac.waldobjekt.org>
Tue, 30 Jun 2009 19:02:13 +0000
(21:02 +0200)
committer
Felix Domke
<tmbinc@2mac.waldobjekt.org>
Tue, 30 Jun 2009 19:02:13 +0000
(21:02 +0200)
lib/gdi/grc.cpp
patch
|
blob
|
history
diff --git
a/lib/gdi/grc.cpp
b/lib/gdi/grc.cpp
index 4b2c5550ccd13a67815a926085b710bf4aea56b9..1f1b06a059cc6e7e4d4b416cbb1698d0c2622c80 100644
(file)
--- a/
lib/gdi/grc.cpp
+++ b/
lib/gdi/grc.cpp
@@
-330,6
+330,7
@@
void gPainter::renderPara(eTextPara *para, ePoint offset)
{
if ( m_dc->islocked() )
return;
+ ASSERT(para);
gOpcode o;
o.opcode=gOpcode::renderPara;
o.dc = m_dc.grabRef();
@@
-409,6
+410,7
@@
void gPainter::setPalette(gRGB *colors, int start, int len)
{
if ( m_dc->islocked() )
return;
+ ASSERT(colors);
gOpcode o;
o.opcode=gOpcode::setPalette;
o.dc = m_dc.grabRef();
@@
-434,6
+436,7
@@
void gPainter::mergePalette(gPixmap *target)
{
if ( m_dc->islocked() )
return;
+ ASSERT(target);
gOpcode o;
o.opcode = gOpcode::mergePalette;
o.dc = m_dc.grabRef();