aboutsummaryrefslogtreecommitdiff
path: root/dw/fltkimgbuf.cc
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2009-02-09 14:56:31 -0300
committerJorge Arellano Cid <jcid@dillo.org>2009-02-09 14:56:31 -0300
commite32686c10a4f4fe7c34b181845220b5c491f32fb (patch)
treec090052c311a3a1732d03dc17fe357f97437b397 /dw/fltkimgbuf.cc
parent74f64426001a693759e47963f99965e0e6ee847d (diff)
whitespace cleanup: 's/ +$//g'
Diffstat (limited to 'dw/fltkimgbuf.cc')
-rw-r--r--dw/fltkimgbuf.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/dw/fltkimgbuf.cc b/dw/fltkimgbuf.cc
index 96164674..233a132b 100644
--- a/dw/fltkimgbuf.cc
+++ b/dw/fltkimgbuf.cc
@@ -123,7 +123,7 @@ inline void FltkImgbuf::scaleRow (int row, const core::byte *data)
{
int sr1 = scaledY (row);
int sr2 = scaledY (row + 1);
-
+
for (int sr = sr1; sr < sr2; sr++) {
// Avoid multiple passes.
if (copiedRows->get(sr)) continue;
@@ -163,7 +163,7 @@ void FltkImgbuf::newScan ()
if (isRoot()) {
for (Iterator<FltkImgbuf> it = scaledBuffers->iterator(); it.hasNext();){
FltkImgbuf *sb = it.getNext ();
- sb->copiedRows->clear();
+ sb->copiedRows->clear();
}
}
}
@@ -172,7 +172,7 @@ core::Imgbuf* FltkImgbuf::getScaledBuf (int width, int height)
{
if (!isRoot())
return root->getScaledBuf (width, height);
-
+
if (width == this->width && height == this->height) {
ref ();
return this;
@@ -265,7 +265,7 @@ void FltkImgbuf::unref ()
bool FltkImgbuf::lastReference ()
{
- return refCount == 1 &&
+ return refCount == 1 &&
(scaledBuffers == NULL || scaledBuffers->isEmpty ());
}
@@ -311,7 +311,7 @@ void FltkImgbuf::draw (::fltk::Widget *target, int xRoot, int yRoot,
height = this->height - y;
}
- // Draw
+ // Draw
::fltk::Rectangle rect (xRoot + x, yRoot + y, width, height);
PixelType ptype = (type == RGBA) ? ::fltk::RGBA : ::fltk::RGB;
drawimage(rawdata+bpp*(y*this->width + x),ptype,rect,bpp*this->width);