1023 |
|
#endif |
1024 |
|
|
1025 |
|
// Zero screen buffers, viRowBytes is initialized at this stage |
1026 |
< |
memset(the_buffer, 0, VModes[cur_mode].viRowBytes * VModes[cur_mode].viYsize); |
1027 |
< |
memset(the_buffer_copy, 0, VModes[cur_mode].viRowBytes * VModes[cur_mode].viYsize); |
1026 |
> |
if (display_open) { |
1027 |
> |
memset(the_buffer, 0, VModes[cur_mode].viRowBytes * VModes[cur_mode].viYsize); |
1028 |
> |
memset(the_buffer_copy, 0, VModes[cur_mode].viRowBytes * VModes[cur_mode].viYsize); |
1029 |
> |
} |
1030 |
|
return display_open; |
1031 |
|
} |
1032 |
|
|
1645 |
|
#endif |
1646 |
|
|
1647 |
|
// Open window/screen |
1648 |
< |
if (!open_display()) |
1648 |
> |
if (!open_display()) { |
1649 |
> |
ErrorAlert(GetString(STR_OPEN_WINDOW_ERR)); |
1650 |
|
return false; |
1651 |
+ |
} |
1652 |
|
|
1653 |
|
#if 0 |
1654 |
|
// Ignore errors from now on |