diff options
Diffstat (limited to 'chalk')
-rw-r--r-- | chalk/colorspaces/wetsticky/ws/ogl_interface.c | 2 | ||||
-rw-r--r-- | chalk/colorspaces/wetsticky/ws/x_interface.c | 2 | ||||
-rw-r--r-- | chalk/core/kis_scale_visitor.cpp | 8 | ||||
-rw-r--r-- | chalk/ui/kis_canvas_painter.h | 8 | ||||
-rw-r--r-- | chalk/ui/kis_opengl_canvas_painter.h | 4 | ||||
-rw-r--r-- | chalk/ui/kis_qpaintdevice_canvas_painter.h | 4 |
6 files changed, 14 insertions, 14 deletions
diff --git a/chalk/colorspaces/wetsticky/ws/ogl_interface.c b/chalk/colorspaces/wetsticky/ws/ogl_interface.c index 391a41942..83e4532d8 100644 --- a/chalk/colorspaces/wetsticky/ws/ogl_interface.c +++ b/chalk/colorspaces/wetsticky/ws/ogl_interface.c @@ -254,7 +254,7 @@ void evolve_paint() }*/ for (k=0; k < STEP_LIMIT; k++) single_step(); - while (TRUE) { + while (1) { next_cell_for_repaint(&cell, &p); if (cell == NIL) return; paint_cell(cell, p.x, p.y); diff --git a/chalk/colorspaces/wetsticky/ws/x_interface.c b/chalk/colorspaces/wetsticky/ws/x_interface.c index b15d3ec25..b070f9faf 100644 --- a/chalk/colorspaces/wetsticky/ws/x_interface.c +++ b/chalk/colorspaces/wetsticky/ws/x_interface.c @@ -699,7 +699,7 @@ void evolve_paint() for (k=0; k < STEP_LIMIT; k++) single_step(); - while (TRUE) { + while (1) { next_cell_for_repaint(&cell, &p); if (cell == NIL) return; paint_cell(cell, p.x, p.y); diff --git a/chalk/core/kis_scale_visitor.cpp b/chalk/core/kis_scale_visitor.cpp index a06d674d1..f89f03ae4 100644 --- a/chalk/core/kis_scale_visitor.cpp +++ b/chalk/core/kis_scale_visitor.cpp @@ -117,7 +117,7 @@ void KisScaleWorker::run() { for(int channel = 0; channel < m_pixelSize; channel++){ weight[channel] = 0.0; - bPelDelta[channel] = FALSE; + bPelDelta[channel] = false; pel[channel]=tmpRows[contribY.p[0].m_pixel][ x * m_pixelSize + channel ]; } for(int srcpos = 0; srcpos < contribY.n; srcpos++) @@ -126,7 +126,7 @@ void KisScaleWorker::run() for(int channel = 0; channel < m_pixelSize; channel++) { pel2[channel]=tmpRows[contribY.p[srcpos].m_pixel][ x * m_pixelSize + channel ]; - if(pel2[channel] != pel[channel]) bPelDelta[channel] = TRUE; + if(pel2[channel] != pel[channel]) bPelDelta[channel] = true; weight[channel] += pel2[channel] * contribY.p[srcpos].m_weight; } } @@ -143,7 +143,7 @@ void KisScaleWorker::run() { for(int channel = 0; channel < m_pixelSize; channel++){ weight[channel] = 0.0; - bPelDelta[channel] = FALSE; + bPelDelta[channel] = false; pel[channel] = tmp[ contribX[x].p[0].m_pixel * m_pixelSize + channel ]; } for(int srcpos = 0; srcpos < contribX[x].n; srcpos++) @@ -151,7 +151,7 @@ void KisScaleWorker::run() for(int channel = 0; channel < m_pixelSize; channel++){ pel2[channel] = tmp[ contribX[x].p[srcpos].m_pixel * m_pixelSize + channel ]; if(pel2[channel] != pel[channel]) - bPelDelta[channel] = TRUE; + bPelDelta[channel] = true; weight[channel] += pel2[channel] * contribX[x].p[srcpos].m_weight; } } diff --git a/chalk/ui/kis_canvas_painter.h b/chalk/ui/kis_canvas_painter.h index 00a197fd9..104763559 100644 --- a/chalk/ui/kis_canvas_painter.h +++ b/chalk/ui/kis_canvas_painter.h @@ -79,7 +79,7 @@ public: virtual void setWorldXForm(bool); virtual const TQWMatrix&worldMatrix() const; - virtual void setWorldMatrix(const TQWMatrix&, bool combine=FALSE); + virtual void setWorldMatrix(const TQWMatrix&, bool combine=false); virtual void saveWorldMatrix(); virtual void restoreWorldMatrix(); @@ -136,7 +136,7 @@ public: virtual void drawChord(const TQRect&, int a, int alen); virtual void drawLineSegments(const TQPointArray&, int index=0, int nlines=-1); virtual void drawPolyline(const TQPointArray&, int index=0, int npoints=-1); - virtual void drawPolygon(const TQPointArray&, bool winding=FALSE, int index=0, int npoints=-1); + virtual void drawPolygon(const TQPointArray&, bool winding=false, int index=0, int npoints=-1); virtual void drawConvexPolygon(const TQPointArray&, int index=0, int npoints=-1); virtual void drawCubicBezier(const TQPointArray&, int index=0); virtual void drawPixmap(int x, int y, const TQPixmap&, int sx=0, int sy=0, int sw=-1, int sh=-1); @@ -242,7 +242,7 @@ public: void setWorldXForm(bool); const TQWMatrix&worldMatrix() const; - void setWorldMatrix(const TQWMatrix&, bool combine=FALSE); + void setWorldMatrix(const TQWMatrix&, bool combine=false); void saveWorldMatrix(); void restoreWorldMatrix(); @@ -299,7 +299,7 @@ public: void drawChord(const TQRect&, int a, int alen); void drawLineSegments(const TQPointArray&, int index=0, int nlines=-1); void drawPolyline(const TQPointArray&, int index=0, int npoints=-1); - void drawPolygon(const TQPointArray&, bool winding=FALSE, int index=0, int npoints=-1); + void drawPolygon(const TQPointArray&, bool winding=false, int index=0, int npoints=-1); void drawConvexPolygon(const TQPointArray&, int index=0, int npoints=-1); void drawCubicBezier(const TQPointArray&, int index=0); void drawPixmap(int x, int y, const TQPixmap&, int sx=0, int sy=0, int sw=-1, int sh=-1); diff --git a/chalk/ui/kis_opengl_canvas_painter.h b/chalk/ui/kis_opengl_canvas_painter.h index ff7c841c5..16b997b80 100644 --- a/chalk/ui/kis_opengl_canvas_painter.h +++ b/chalk/ui/kis_opengl_canvas_painter.h @@ -86,7 +86,7 @@ public: virtual void setWorldXForm(bool); virtual const TQWMatrix&worldMatrix() const; - virtual void setWorldMatrix(const TQWMatrix&, bool combine=FALSE); + virtual void setWorldMatrix(const TQWMatrix&, bool combine=false); virtual void saveWorldMatrix(); virtual void restoreWorldMatrix(); @@ -143,7 +143,7 @@ public: virtual void drawChord(const TQRect&, int a, int alen); virtual void drawLineSegments(const TQPointArray&, int index=0, int nlines=-1); virtual void drawPolyline(const TQPointArray&, int index=0, int npoints=-1); - virtual void drawPolygon(const TQPointArray&, bool winding=FALSE, int index=0, int npoints=-1); + virtual void drawPolygon(const TQPointArray&, bool winding=false, int index=0, int npoints=-1); virtual void drawConvexPolygon(const TQPointArray&, int index=0, int npoints=-1); virtual void drawCubicBezier(const TQPointArray&, int index=0); virtual void drawPixmap(int x, int y, const TQPixmap&, int sx=0, int sy=0, int sw=-1, int sh=-1); diff --git a/chalk/ui/kis_qpaintdevice_canvas_painter.h b/chalk/ui/kis_qpaintdevice_canvas_painter.h index 704cbfff9..547de9e1d 100644 --- a/chalk/ui/kis_qpaintdevice_canvas_painter.h +++ b/chalk/ui/kis_qpaintdevice_canvas_painter.h @@ -81,7 +81,7 @@ public: virtual void setWorldXForm(bool); virtual const TQWMatrix&worldMatrix() const; - virtual void setWorldMatrix(const TQWMatrix&, bool combine=FALSE); + virtual void setWorldMatrix(const TQWMatrix&, bool combine=false); virtual void saveWorldMatrix(); virtual void restoreWorldMatrix(); @@ -138,7 +138,7 @@ public: virtual void drawChord(const TQRect&, int a, int alen); virtual void drawLineSegments(const TQPointArray&, int index=0, int nlines=-1); virtual void drawPolyline(const TQPointArray&, int index=0, int npoints=-1); - virtual void drawPolygon(const TQPointArray&, bool winding=FALSE, int index=0, int npoints=-1); + virtual void drawPolygon(const TQPointArray&, bool winding=false, int index=0, int npoints=-1); virtual void drawConvexPolygon(const TQPointArray&, int index=0, int npoints=-1); virtual void drawCubicBezier(const TQPointArray&, int index=0); virtual void drawPixmap(int x, int y, const TQPixmap&, int sx=0, int sy=0, int sw=-1, int sh=-1); |