mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-23 11:04:44 +00:00
DREAMWEB: Move checkCoords templated implementation to Dreambase header.
The PSP (MIPS) toolchain generates differing symbols for this template and thus fails to link. By moving the implementation to the defining header, this should fix this.
This commit is contained in:
parent
4c2d2684ea
commit
1ff19e19e7
@ -778,7 +778,21 @@ public:
|
||||
void setAllChanges();
|
||||
void restoreAll();
|
||||
void redrawMainScrn();
|
||||
template <class T> void checkCoords(const RectWithCallback<T> *rectWithCallbacks);
|
||||
|
||||
template <class T>
|
||||
void checkCoords(const RectWithCallback<T> *rectWithCallbacks) {
|
||||
if (_newLocation != 0xff)
|
||||
return;
|
||||
|
||||
const RectWithCallback<T> *r;
|
||||
for (r = rectWithCallbacks; r->_xMin != 0xffff; ++r) {
|
||||
if (r->contains(_mouseX, _mouseY)) {
|
||||
(((T *)this)->*(r->_callback))();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void newGame();
|
||||
void deleteTaken();
|
||||
void autoAppear();
|
||||
|
@ -1527,20 +1527,6 @@ void DreamBase::dumpPointer() {
|
||||
multiDump(_oldPointerX, _oldPointerY, _pointerXS, _pointerYS);
|
||||
}
|
||||
|
||||
template <class T>
|
||||
void DreamBase::checkCoords(const RectWithCallback<T> *rectWithCallbacks) {
|
||||
if (_newLocation != 0xff)
|
||||
return;
|
||||
|
||||
const RectWithCallback<T> *r;
|
||||
for (r = rectWithCallbacks; r->_xMin != 0xffff; ++r) {
|
||||
if (r->contains(_mouseX, _mouseY)) {
|
||||
(((T *)this)->*(r->_callback))();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void DreamBase::showPointer() {
|
||||
showBlink();
|
||||
uint16 x = _mouseX;
|
||||
|
Loading…
x
Reference in New Issue
Block a user