(pointers) style.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40052 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2011-01-01 16:46:58 +00:00
parent 903625ee29
commit c4b9b7dbe5
@@ -471,7 +471,8 @@ MesaSoftwareRenderer::CopyPixelsOut(BPoint location, BBitmap *bitmap)
uint8* ps = (uint8*) fBitmap->Bits(); uint8* ps = (uint8*) fBitmap->Bits();
uint8* pd = (uint8*) bitmap->Bits(); uint8* pd = (uint8*) bitmap->Bits();
uint32 *s, *d; uint32* s,
uint32* d;
uint32 y; uint32 y;
for (y = (uint32) sr.top; y <= (uint32)sr.bottom; y++) { for (y = (uint32) sr.top; y <= (uint32)sr.bottom; y++) {
s = (uint32*)(ps + y * fBitmap->BytesPerRow()); s = (uint32*)(ps + y * fBitmap->BytesPerRow());
@@ -509,7 +510,8 @@ MesaSoftwareRenderer::CopyPixelsIn(BBitmap *bitmap, BPoint location)
uint8* ps = (uint8*) bitmap->Bits(); uint8* ps = (uint8*) bitmap->Bits();
uint8* pd = (uint8*) fBitmap->Bits(); uint8* pd = (uint8*) fBitmap->Bits();
uint32 *s, *d; uint32* s;
uint32* d;
uint32 y; uint32 y;
for (y = (uint32) sr.top; y <= (uint32)sr.bottom; y++) { for (y = (uint32) sr.top; y <= (uint32)sr.bottom; y++) {
s = (uint32*)(ps + y * bitmap->BytesPerRow()); s = (uint32*)(ps + y * bitmap->BytesPerRow());
@@ -550,7 +552,6 @@ MesaSoftwareRenderer::DirectConnected(direct_buffer_info *info)
free(fInfo); free(fInfo);
fInfo = NULL; fInfo = NULL;
} }
} }
@@ -569,6 +570,7 @@ MesaSoftwareRenderer::_AllocateBitmap()
// allocate new size of back buffer bitmap // allocate new size of back buffer bitmap
delete fBitmap; delete fBitmap;
fBitmap = NULL; fBitmap = NULL;
if (fWidth < 1 || fHeight < 1) if (fWidth < 1 || fHeight < 1)
return; return;
BRect rect(0.0, 0.0, fWidth - 1, fHeight - 1); BRect rect(0.0, 0.0, fWidth - 1, fHeight - 1);
@@ -862,6 +864,7 @@ MesaSoftwareRenderer::_CopyToDirect()
|| fInfo->window_bounds.right - fInfo->window_bounds.left || fInfo->window_bounds.right - fInfo->window_bounds.left
!= fBitmap->Bounds().IntegerWidth()) != fBitmap->Bounds().IntegerWidth())
return; return;
uint8 bytesPerPixel = fInfo->bits_per_pixel / 8; uint8 bytesPerPixel = fInfo->bits_per_pixel / 8;
uint32 bytesPerRow = fBitmap->BytesPerRow(); uint32 bytesPerRow = fBitmap->BytesPerRow();
for (uint32 i = 0; i < fInfo->clip_list_count; i++) { for (uint32 i = 0; i < fInfo->clip_list_count; i++) {