Rev 18 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 18 | Rev 20 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #include "brender.h" |
1 | #include "brender/brender.h" |
2 | #include "car.h" |
2 | #include "car.h" |
3 | #include "dinput.h" |
3 | #include "dinput.h" |
4 | #include "errors.h" |
4 | #include "errors.h" |
5 | #include "globvars.h" |
5 | #include "globvars.h" |
6 | #include "grafdata.h" |
6 | #include "grafdata.h" |
Line 31... | Line 31... | ||
31 | 31 | ||
32 | int gExtra_mem; |
32 | int gExtra_mem; |
33 | int gReplay_override; |
33 | int gReplay_override; |
34 | tGraf_spec gGraf_specs[2] = { |
34 | tGraf_spec gGraf_specs[2] = { |
35 | { 8, 1, 0, 320, 200, 0, 0, "32X20X8", GFX_INIT_STRING_32X20X8, 320, 320, 200, NULL }, |
35 | { 8, 1, 0, 320, 200, 0, 0, "32X20X8", GFX_INIT_STRING_32X20X8, 320, 320, 200, NULL }, |
36 | { 8, 1, 0, 640, 480, 0, 0, "64X48X8", GFX_INIT_STRING_64X48X8, 640, 480, 480, NULL } // Pierre-Marie Baty -- fixed yres |
36 | { 8, 1, 0, 640, 480, 0, 0, "64X48X8", GFX_INIT_STRING_64X48X8, 640, 480, 480, NULL } // Pierre-Marie Baty -- fixed yres |
37 | }; |
37 | }; |
38 | int gASCII_table[128]; |
38 | int gASCII_table[128]; |
39 | tU32 gKeyboard_bits[8]; |
39 | tU32 gKeyboard_bits[8]; |
40 | int gASCII_shift_table[128]; |
40 | int gASCII_shift_table[128]; |
41 | char gNetwork_profile_fname[256]; |
41 | char gNetwork_profile_fname[256]; |
Line 633... | Line 633... | ||
633 | 633 | ||
634 | if (pRendering_area_only) { |
634 | if (pRendering_area_only) { |
635 | BrPixelmapRectangleCopy(gScreen, gY_offset, gX_offset, gRender_screen, 0, 0, gWidth, gHeight); |
635 | BrPixelmapRectangleCopy(gScreen, gY_offset, gX_offset, gRender_screen, 0, 0, gWidth, gHeight); |
636 | } else { |
636 | } else { |
637 | if (gReal_graf_data_index == gGraf_data_index) { |
637 | if (gReal_graf_data_index == gGraf_data_index) { |
638 |
|
638 | BrPixelmapDoubleBuffer(gScreen, gBack_screen); |
639 | gHarness_platform.Renderer_Present(gBack_screen); |
- | |
640 | } else { |
639 | } else { |
641 | DRPixelmapDoubledCopy(gTemp_screen, gBack_screen, 320, 200, 0, 40); |
640 | DRPixelmapDoubledCopy(gTemp_screen, gBack_screen, 320, 200, 0, 40); |
642 |
|
641 | BrPixelmapDoubleBuffer(gScreen, gTemp_screen); |
643 | gHarness_platform.Renderer_Present(gTemp_screen); |
- | |
644 | } |
642 | } |
645 | } |
643 | } |
646 | } |
644 | } |
647 | 645 | ||
648 | void PDPixelmapToScreenRectangleCopy(br_pixelmap* dst, br_int_16 dx, br_int_16 dy, br_pixelmap* src, br_int_16 sx, br_int_16 sy, br_uint_16 w, br_uint_16 h) { |
646 | void PDPixelmapToScreenRectangleCopy(br_pixelmap* dst, br_int_16 dx, br_int_16 dy, br_pixelmap* src, br_int_16 sx, br_int_16 sy, br_uint_16 w, br_uint_16 h) { |