tooltips are disabled for R77

This commit is contained in:
thrust26 2020-11-20 23:06:06 +01:00
parent 94fae3de3d
commit 11ec159bff
3 changed files with 9 additions and 9 deletions

View File

@ -244,7 +244,7 @@ void Dialog::redraw(bool force)
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void Dialog::render()
{
cerr << " render " << typeid(*this).name() << endl;
//cerr << " render " << typeid(*this).name() << endl;
// Update dialog surface; also render any extra surfaces
// Extra surfaces must be rendered afterwards, so they are drawn on top
@ -641,8 +641,10 @@ void Dialog::handleMouseMoved(int x, int y)
if (w && (w->getFlags() & Widget::FLAG_TRACK_MOUSE))
w->handleMouseMoved(x - (w->getAbsX() - _x), y - (w->getAbsY() - _y));
#ifndef RETRON77
// Update mouse coordinates for tooltips
_toolTip->update(_mouseWidget, Common::Point(x, y));
#endif
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

View File

@ -95,11 +95,7 @@ void DialogContainer::draw(bool full)
if(myDialogStack.empty())
return;
cerr << "draw " << full << " " << typeid(*this).name() << endl;
// Make the top dialog dirty if a full redraw is requested
//if(full)
// myDialogStack.top()->setDirty();
//cerr << "draw " << full << " " << typeid(*this).name() << endl;
// Draw and render all dirty dialogs
myDialogStack.applyAll([&](Dialog*& d) {
@ -123,7 +119,7 @@ void DialogContainer::render()
if(myDialogStack.empty())
return;
cerr << "full re-render " << typeid(*this).name() << endl;
//cerr << "full re-render " << typeid(*this).name() << endl;
// Make sure we start in a clean state (with zero'ed buffers)
if(!myOSystem.eventHandler().inTIAMode())

View File

@ -75,8 +75,10 @@ void Widget::tick()
{
if(isEnabled())
{
#ifndef RETRON77
if(wantsToolTip())
dialog().tooltip().request();
#endif
// Recursively tick widget and all child dialogs and widgets
Widget* w = _firstWidget;
@ -97,8 +99,8 @@ void Widget::draw()
if(isDirty())
{
cerr << " *** draw widget " << typeid(*this).name() << " ***" << endl;
//cerr << "w";
//cerr << " *** draw widget " << typeid(*this).name() << " ***" << endl;
cerr << "w";
FBSurface& s = _boss->dialog().surface();
int oldX = _x, oldY = _y;