summaryrefslogtreecommitdiff
path: root/dw/image.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dw/image.cc')
-rw-r--r--dw/image.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/dw/image.cc b/dw/image.cc
index d753a0f2..d04d993b 100644
--- a/dw/image.cc
+++ b/dw/image.cc
@@ -217,7 +217,7 @@ void Image::sizeRequestImpl (core::Requisition *requisition)
+ boxOffsetY ();
requisition->descent = boxRestHeight ();
}
- }
+ }
DBG_OBJ_MSGF ("resize", 1, "=> %d * (%d + %d)",
requisition->width, requisition->ascent, requisition->descent);
@@ -247,7 +247,7 @@ void Image::sizeAllocateImpl (core::Allocation *allocation)
allocation->x, allocation->y, allocation->width,
allocation->ascent, allocation->descent);
-
+
int newBufWidth = allocation->width - boxDiffWidth ();
int newBufHeight =
allocation->ascent + allocation->descent - boxDiffHeight ();
@@ -256,19 +256,19 @@ void Image::sizeAllocateImpl (core::Allocation *allocation)
// Save some time when size did not change:
(newBufWidth != bufWidth || newBufHeight != bufHeight)) {
DBG_OBJ_MSG ("resize", 1, "replacing buffer");
-
+
core::Imgbuf *oldBuffer = buffer;
buffer = oldBuffer->getScaledBuf (newBufWidth, newBufHeight);
oldBuffer->unref ();
-
+
bufWidth = newBufWidth;
bufHeight = newBufHeight;
-
+
DBG_OBJ_ASSOC_CHILD (this->buffer);
DBG_OBJ_SET_NUM ("bufWidth", bufWidth);
DBG_OBJ_SET_NUM ("bufHeight", bufHeight);
}
-
+
DBG_OBJ_LEAVE ();
}