This one took me ages to find out, since I was looking for a bug in

BDirectWindow, either in the kit or app_server part. Basically that
calculation overflowed, and the application drawn outside the frame
buffer. Freaky. I'm sure Chart suffers from a similar problem (ticket
#1939)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32316 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2009-08-13 14:54:54 +00:00
parent 8a07056253
commit 160b539f04

View File

@ -356,7 +356,7 @@ StarWindow::SwitchContext(direct_buffer_info *info)
row_bytes = info->bytes_per_row / (info->bits_per_pixel / 8);
// update the screen bases (only one of the 3 will be really used).
draw_ptr8 = (uint8*)info->bits + info->bytes_per_row * info->window_bounds.top + (info->window_bounds.left * info->bits_per_pixel / 8);
draw_ptr8 = (uint8*)info->bits + (info->bytes_per_row * info->window_bounds.top) + (info->window_bounds.left * (info->bits_per_pixel / 8));
draw_ptr16 = (uint16*)draw_ptr8;
draw_ptr32 = (uint32*)draw_ptr8;