192 |
|
// From main_unix.cpp |
193 |
|
extern char *x_display_name; |
194 |
|
extern Display *x_display; |
195 |
+ |
extern void *vm_acquire_mac(size_t size); |
196 |
|
|
197 |
|
// From sys_unix.cpp |
198 |
|
extern void SysMountFirstFloppy(void); |
731 |
|
// Allocate memory for frame buffer (SIZE is extended to page-boundary) |
732 |
|
the_host_buffer = the_buffer_copy; |
733 |
|
the_buffer_size = page_extend((aligned_height + 2) * img->bytes_per_line); |
734 |
< |
the_buffer = (uint8 *)vm_acquire(the_buffer_size); |
734 |
> |
the_buffer = (uint8 *)vm_acquire_mac(the_buffer_size); |
735 |
|
the_buffer_copy = (uint8 *)malloc(the_buffer_size); |
736 |
|
D(bug("the_buffer = %p, the_buffer_copy = %p, the_host_buffer = %p\n", the_buffer, the_buffer_copy, the_host_buffer)); |
737 |
|
#else |
1127 |
|
the_host_buffer = the_buffer; |
1128 |
|
the_buffer_size = page_extend((height + 2) * bytes_per_row); |
1129 |
|
the_buffer_copy = (uint8 *)malloc(the_buffer_size); |
1130 |
< |
the_buffer = (uint8 *)vm_acquire(the_buffer_size); |
1130 |
> |
the_buffer = (uint8 *)vm_acquire_mac(the_buffer_size); |
1131 |
|
} |
1132 |
|
#else |
1133 |
|
use_vosf = false; |
1267 |
|
the_host_buffer = the_buffer; |
1268 |
|
the_buffer_size = page_extend((height + 2) * bytes_per_row); |
1269 |
|
the_buffer_copy = (uint8 *)malloc(the_buffer_size); |
1270 |
< |
the_buffer = (uint8 *)vm_acquire(the_buffer_size); |
1270 |
> |
the_buffer = (uint8 *)vm_acquire_mac(the_buffer_size); |
1271 |
|
} |
1272 |
|
#else |
1273 |
|
use_vosf = false; |