diff options
author | corvid <devnull@localhost> | 2014-08-10 00:00:47 +0000 |
---|---|---|
committer | corvid <devnull@localhost> | 2014-08-10 00:00:47 +0000 |
commit | c43632b2a5b26a96b84e7d7cd8c5f8ecffe4aa32 (patch) | |
tree | b5f1fce42eebbb7f574970f397719aaac8b5f027 /dw/image.cc | |
parent | 80e8bbb92e7425f4fec454348e0823039a07fac0 (diff) |
trim spaces
...now that floats and grows are in the repo and I won't be making
Sebastian's life difficult with a bunch of whitespace changes.
Diffstat (limited to 'dw/image.cc')
-rw-r--r-- | dw/image.cc | 12 |
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 (); } |