Revision 157
minor change
proj.c | ||
---|---|---|
21 | 21 |
#include "interrupts_func.h" |
22 | 22 |
#include "proj_func.h" |
23 | 23 |
|
24 |
#ifdef DIOGO |
|
25 |
#include "plus.xpm" |
|
26 |
#endif |
|
27 |
|
|
24 | 28 |
int main(int argc, char* argv[]) { |
25 | 29 |
|
26 | 30 |
lcf_set_language("EN-US"); |
... | ... | |
38 | 42 |
|
39 | 43 |
int(proj_main_loop)(int argc, char *argv[]) { |
40 | 44 |
|
41 |
if (vbe_get_mode_information(INDEXED_1024_768)) {
|
|
42 |
printf("%s: failed to get information for mode %x.\n", __func__, INDEXED_1024_768);
|
|
45 |
if (vbe_get_mode_information(GRAPH_MODE)) {
|
|
46 |
printf("%s: failed to get information for mode %x.\n", __func__, GRAPH_MODE);
|
|
43 | 47 |
if (cleanup()) |
44 | 48 |
printf("%s: failed to cleanup.\n", __func__); |
45 | 49 |
return 1; |
... | ... | |
47 | 51 |
|
48 | 52 |
map_vram(); // if function fails it aborts program |
49 | 53 |
|
50 |
if (set_graphics_mode(INDEXED_1024_768)) {
|
|
51 |
printf("%s: failed to set graphic mode %x.\n", __func__, INDEXED_1024_768);
|
|
54 |
if (set_graphics_mode(GRAPH_MODE)) {
|
|
55 |
printf("%s: failed to set graphic mode %x.\n", __func__, GRAPH_MODE);
|
|
52 | 56 |
if (cleanup()) |
53 | 57 |
printf("%s: failed to cleanup.\n", __func__); |
54 | 58 |
return 1; |
Also available in: Unified diff