735 |
|
use_vosf = true; |
736 |
|
// Allocate memory for frame buffer (SIZE is extended to page-boundary) |
737 |
|
the_host_buffer = the_buffer_copy; |
738 |
< |
the_buffer_size = page_extend((aligned_height + 2) * img->bytes_per_line); |
738 |
> |
the_host_buffer_row_bytes = img->bytes_per_line; |
739 |
> |
the_buffer_size = page_extend((aligned_height + 2) * the_host_buffer_row_bytes); |
740 |
|
the_buffer = (uint8 *)vm_acquire_mac(the_buffer_size); |
741 |
|
the_buffer_copy = (uint8 *)malloc(the_buffer_size); |
742 |
|
D(bug("the_buffer = %p, the_buffer_copy = %p, the_host_buffer = %p\n", the_buffer, the_buffer_copy, the_host_buffer)); |
1131 |
|
if (use_vosf) { |
1132 |
|
// Allocate memory for frame buffer (SIZE is extended to page-boundary) |
1133 |
|
the_host_buffer = the_buffer; |
1134 |
< |
the_buffer_size = page_extend((height + 2) * bytes_per_row); |
1134 |
> |
the_host_buffer_row_bytes = bytes_per_row; |
1135 |
> |
the_buffer_size = page_extend((height + 2) * the_host_buffer_row_bytes); |
1136 |
|
the_buffer_copy = (uint8 *)malloc(the_buffer_size); |
1137 |
|
the_buffer = (uint8 *)vm_acquire_mac(the_buffer_size); |
1138 |
|
} |
1272 |
|
if (use_vosf) { |
1273 |
|
// Allocate memory for frame buffer (SIZE is extended to page-boundary) |
1274 |
|
the_host_buffer = the_buffer; |
1275 |
< |
the_buffer_size = page_extend((height + 2) * bytes_per_row); |
1275 |
> |
the_host_buffer_row_bytes = bytes_per_row; |
1276 |
> |
the_buffer_size = page_extend((height + 2) * the_host_buffer_row_bytes); |
1277 |
|
the_buffer_copy = (uint8 *)malloc(the_buffer_size); |
1278 |
|
the_buffer = (uint8 *)vm_acquire_mac(the_buffer_size); |
1279 |
|
} |
1415 |
|
} |
1416 |
|
|
1417 |
|
// Build up visualFormat structure |
1418 |
+ |
visualFormat.fullscreen = (display_type == DISPLAY_DGA); |
1419 |
|
visualFormat.depth = visualInfo.depth; |
1420 |
|
visualFormat.Rmask = visualInfo.red_mask; |
1421 |
|
visualFormat.Gmask = visualInfo.green_mask; |