Rev 18 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 18 | Rev 20 | ||
|---|---|---|---|
| Line 1... | Line 1... | ||
| 1 | #include "displays.h" |
1 | #include "displays.h" |
| 2 | #include "brender.h" |
2 | #include "brender/brender.h" |
| 3 | #include "constants.h" |
3 | #include "constants.h" |
| 4 | #include "controls.h" |
4 | #include "controls.h" |
| 5 | #include "depth.h" |
5 | #include "depth.h" |
| 6 | #include "flicplay.h" |
6 | #include "flicplay.h" |
| 7 | #include "globvars.h" |
7 | #include "globvars.h" |
| Line 921... | Line 921... | ||
| 921 | } |
921 | } |
| 922 | } |
922 | } |
| 923 | 923 | ||
| 924 | // IDA: void __usercall MoveHeadupTo(int pHeadup_index@<EAX>, int pNew_x@<EDX>, int pNew_y@<EBX>) |
924 | // IDA: void __usercall MoveHeadupTo(int pHeadup_index@<EAX>, int pNew_x@<EDX>, int pNew_y@<EBX>) |
| 925 | void MoveHeadupTo(int pHeadup_index, int pNew_x, int pNew_y) { |
925 | void MoveHeadupTo(int pHeadup_index, int pNew_x, int pNew_y) { |
| 926 |
|
926 | //int delta_x; // Pierre-Marie Baty -- unused variable |
| 927 | //tHeadup* the_headup; // Pierre-Marie Baty -- unused variable |
927 | //tHeadup* the_headup; // Pierre-Marie Baty -- unused variable |
| 928 | LOG_TRACE("(%d, %d, %d)", pHeadup_index, pNew_x, pNew_y); |
928 | LOG_TRACE("(%d, %d, %d)", pHeadup_index, pNew_x, pNew_y); |
| 929 | - | ||
| 930 |
|
929 | NOT_IMPLEMENTED(); |
| 931 | delta_x = gHeadups[pHeadup_index].x - gHeadups[pHeadup_index].original_x; |
- | |
| 932 | gHeadups[pHeadup_index].original_x = pNew_x; |
- | |
| 933 | gHeadups[pHeadup_index].x = pNew_x + delta_x; |
- | |
| 934 | gHeadups[pHeadup_index].y = pNew_y; |
- | |
| 935 | } |
- | |
| 936 | } |
930 | } |
| 937 | 931 | ||
| 938 | // IDA: void __usercall ChangeHeadupText(int pHeadup_index@<EAX>, char *pNew_text@<EDX>) |
932 | // IDA: void __usercall ChangeHeadupText(int pHeadup_index@<EAX>, char *pNew_text@<EDX>) |
| 939 | void ChangeHeadupText(int pHeadup_index, char* pNew_text) { |
933 | void ChangeHeadupText(int pHeadup_index, char* pNew_text) { |
| 940 | tHeadup* the_headup; |
934 | tHeadup* the_headup; |