Rev 1 | Rev 20 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1 | Rev 18 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #include "displays.h" |
1 | #include "displays.h" |
2 | #include " |
2 | #include "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; |
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 | ||
929 |
|
930 | if (pHeadup_index >= 0) { |
- | 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 | } |
|
930 | } |
936 | } |
931 | 937 | ||
932 | // IDA: void __usercall ChangeHeadupText(int pHeadup_index@<EAX>, char *pNew_text@<EDX>) |
938 | // IDA: void __usercall ChangeHeadupText(int pHeadup_index@<EAX>, char *pNew_text@<EDX>) |
933 | void ChangeHeadupText(int pHeadup_index, char* pNew_text) { |
939 | void ChangeHeadupText(int pHeadup_index, char* pNew_text) { |
934 | tHeadup* the_headup; |
940 | tHeadup* the_headup; |