Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
20 | pmbaty | 1 | #include "prepmap.h" |
2 | #include "harness/hooks.h" |
||
3 | #include "harness/trace.h" |
||
4 | |||
5 | // IDA: void __cdecl BrMapUpdate(br_pixelmap *map, br_uint_16 flags) |
||
6 | void BrMapUpdate(br_pixelmap* map, br_uint_16 flags) { |
||
7 | BrBufferUpdate(map, BRT_COLOUR_MAP_O, flags); |
||
8 | } |
||
9 | |||
10 | // IDA: void __usercall BrBufferUpdate(br_pixelmap *pm@<EAX>, br_token use@<EDX>, br_uint_16 flags@<EBX>) |
||
11 | void BrBufferUpdate(br_pixelmap* pm, br_token use, br_uint_16 flags) { |
||
12 | //br_token_value tv[3]; // Pierre-Marie Baty -- unused variable |
||
13 | |||
14 | // renderer->dispatch->bufferStoredNew ... |
||
15 | |||
16 | // Added by dethrace |
||
17 | if (use != BRT_COLOUR_MAP_O && use != BRT_UNKNOWN) { |
||
18 | LOG_PANIC("use %d", use); |
||
19 | } |
||
20 | gHarness_platform.Renderer_BufferTexture(pm); |
||
21 | } |
||
22 | |||
23 | // IDA: void __usercall BrBufferClear(br_pixelmap *pm@<EAX>) |
||
24 | void BrBufferClear(br_pixelmap* pm) { |
||
25 | LOG_TRACE("(%p)", pm); |
||
26 | |||
27 | STUB_ONCE(); |
||
28 | return; |
||
29 | |||
30 | // FIXME: use a proper br_buffer_storage object with br_buffer_stored_dispatch dispatch table |
||
31 | if (pm->stored != NULL) { |
||
32 | (*(br_object_dispatch**)pm->stored)->_free(pm->stored); |
||
33 | pm->stored = NULL; |
||
34 | } |
||
35 | } |