From 32eac6c375b2ca8271f9861e790701d15d430238 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 3 Jun 2008 14:31:47 +0000 Subject: [PATCH] Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25781 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/drawing/drawing_support.h | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/servers/app/drawing/drawing_support.h b/src/servers/app/drawing/drawing_support.h index ecbfdb3f3b..1d8861c2fb 100644 --- a/src/servers/app/drawing/drawing_support.h +++ b/src/servers/app/drawing/drawing_support.h @@ -5,8 +5,8 @@ * Authors: * Stephan Aßmus */ -#ifndef SUPPORT_H -#define SUPPORT_H +#ifndef DRAWING_SUPPORT_H +#define DRAWING_SUPPORT_H #include @@ -42,7 +42,7 @@ gfxcpy(uint8* dst, const uint8* src, int32 numBytes) dst += numBytesBegin - numBytes; src += numBytesBegin - numBytes; numBytesBegin = numBytes; - + uint32* d32 = (uint32*)dst; uint32* s32 = (uint32*)src; while (numBytes >= 4) { @@ -52,7 +52,7 @@ gfxcpy(uint8* dst, const uint8* src, int32 numBytes) // update original pointers dst += numBytesBegin - numBytes; src += numBytesBegin - numBytes; - + while (numBytes > 0) { *dst++ = *src++; numBytes--; @@ -142,9 +142,6 @@ blend_line32(uint8* buffer, int32 pixels, uint8 r, uint8 g, uint8 b, uint8 a) gfxcpy32(buffer, tempBuffer, pixels * 4); } -void -align_rect_to_pixels(BRect* rect); - -#endif // SUPPORT_H - +void align_rect_to_pixels(BRect* rect); +#endif // DRAWING_SUPPORT_H