- Joined
- Apr 1, 2008
- Messages
- 2,064
- Reaction score
- 507
- Points
- 113
Hi,
I've noticed something that doesn't seem to be right:
When compiling the Orbiter2016 branch, ApolloRTCCMFD_Display.cpp uses oapi::Sketchpad::TextW method, although that method is only available in Orbiter BETA (DrawAPI.h) as far as I can tell...
DrawAPI.h
It might work, but I'm concerned that the automatic build system compiles against a mix of headers that might lead into serious problems.
If you have the guarantee (from Martin) that the TextW method is accessible even in Orbiter 2016 than I would recommend having a pre-build-step to get that new DrawAPI.h file from somewhere (something like "copy DrawAPI_NASSP.h DrawAPI.h").
I've noticed something that doesn't seem to be right:
When compiling the Orbiter2016 branch, ApolloRTCCMFD_Display.cpp uses oapi::Sketchpad::TextW method, although that method is only available in Orbiter BETA (DrawAPI.h) as far as I can tell...
DrawAPI.h
PHP:
// Present in 2016 (and BETA)
virtual bool Text (int x, int y, const char *str, int len) { return false; }
// Present only in BETA
virtual bool TextW (int x, int y, const LPWSTR str, int len) { return false; }
It might work, but I'm concerned that the automatic build system compiles against a mix of headers that might lead into serious problems.
If you have the guarantee (from Martin) that the TextW method is accessible even in Orbiter 2016 than I would recommend having a pre-build-step to get that new DrawAPI.h file from somewhere (something like "copy DrawAPI_NASSP.h DrawAPI.h").