Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25781 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -5,8 +5,8 @@
|
|||||||
* Authors:
|
* Authors:
|
||||||
* Stephan Aßmus <[email protected]>
|
* Stephan Aßmus <[email protected]>
|
||||||
*/
|
*/
|
||||||
#ifndef SUPPORT_H
|
#ifndef DRAWING_SUPPORT_H
|
||||||
#define SUPPORT_H
|
#define DRAWING_SUPPORT_H
|
||||||
|
|
||||||
|
|
||||||
#include <SupportDefs.h>
|
#include <SupportDefs.h>
|
||||||
@@ -42,7 +42,7 @@ gfxcpy(uint8* dst, const uint8* src, int32 numBytes)
|
|||||||
dst += numBytesBegin - numBytes;
|
dst += numBytesBegin - numBytes;
|
||||||
src += numBytesBegin - numBytes;
|
src += numBytesBegin - numBytes;
|
||||||
numBytesBegin = numBytes;
|
numBytesBegin = numBytes;
|
||||||
|
|
||||||
uint32* d32 = (uint32*)dst;
|
uint32* d32 = (uint32*)dst;
|
||||||
uint32* s32 = (uint32*)src;
|
uint32* s32 = (uint32*)src;
|
||||||
while (numBytes >= 4) {
|
while (numBytes >= 4) {
|
||||||
@@ -52,7 +52,7 @@ gfxcpy(uint8* dst, const uint8* src, int32 numBytes)
|
|||||||
// update original pointers
|
// update original pointers
|
||||||
dst += numBytesBegin - numBytes;
|
dst += numBytesBegin - numBytes;
|
||||||
src += numBytesBegin - numBytes;
|
src += numBytesBegin - numBytes;
|
||||||
|
|
||||||
while (numBytes > 0) {
|
while (numBytes > 0) {
|
||||||
*dst++ = *src++;
|
*dst++ = *src++;
|
||||||
numBytes--;
|
numBytes--;
|
||||||
@@ -142,9 +142,6 @@ blend_line32(uint8* buffer, int32 pixels, uint8 r, uint8 g, uint8 b, uint8 a)
|
|||||||
gfxcpy32(buffer, tempBuffer, pixels * 4);
|
gfxcpy32(buffer, tempBuffer, pixels * 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void align_rect_to_pixels(BRect* rect);
|
||||||
align_rect_to_pixels(BRect* rect);
|
|
||||||
|
|
||||||
#endif // SUPPORT_H
|
|
||||||
|
|
||||||
|
|
||||||
|
#endif // DRAWING_SUPPORT_H
|
||||||
|
|||||||
Reference in New Issue
Block a user