mirror of https://github.com/stella-emu/stella.git
tooltips are disabled for R77
This commit is contained in:
parent
94fae3de3d
commit
11ec159bff
|
@ -244,7 +244,7 @@ void Dialog::redraw(bool force)
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
void Dialog::render()
|
void Dialog::render()
|
||||||
{
|
{
|
||||||
cerr << " render " << typeid(*this).name() << endl;
|
//cerr << " render " << typeid(*this).name() << endl;
|
||||||
|
|
||||||
// Update dialog surface; also render any extra surfaces
|
// Update dialog surface; also render any extra surfaces
|
||||||
// Extra surfaces must be rendered afterwards, so they are drawn on top
|
// 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))
|
if (w && (w->getFlags() & Widget::FLAG_TRACK_MOUSE))
|
||||||
w->handleMouseMoved(x - (w->getAbsX() - _x), y - (w->getAbsY() - _y));
|
w->handleMouseMoved(x - (w->getAbsX() - _x), y - (w->getAbsY() - _y));
|
||||||
|
|
||||||
|
#ifndef RETRON77
|
||||||
// Update mouse coordinates for tooltips
|
// Update mouse coordinates for tooltips
|
||||||
_toolTip->update(_mouseWidget, Common::Point(x, y));
|
_toolTip->update(_mouseWidget, Common::Point(x, y));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
|
@ -95,11 +95,7 @@ void DialogContainer::draw(bool full)
|
||||||
if(myDialogStack.empty())
|
if(myDialogStack.empty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
cerr << "draw " << full << " " << typeid(*this).name() << endl;
|
//cerr << "draw " << full << " " << typeid(*this).name() << endl;
|
||||||
|
|
||||||
// Make the top dialog dirty if a full redraw is requested
|
|
||||||
//if(full)
|
|
||||||
// myDialogStack.top()->setDirty();
|
|
||||||
|
|
||||||
// Draw and render all dirty dialogs
|
// Draw and render all dirty dialogs
|
||||||
myDialogStack.applyAll([&](Dialog*& d) {
|
myDialogStack.applyAll([&](Dialog*& d) {
|
||||||
|
@ -123,7 +119,7 @@ void DialogContainer::render()
|
||||||
if(myDialogStack.empty())
|
if(myDialogStack.empty())
|
||||||
return;
|
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)
|
// Make sure we start in a clean state (with zero'ed buffers)
|
||||||
if(!myOSystem.eventHandler().inTIAMode())
|
if(!myOSystem.eventHandler().inTIAMode())
|
||||||
|
|
|
@ -75,8 +75,10 @@ void Widget::tick()
|
||||||
{
|
{
|
||||||
if(isEnabled())
|
if(isEnabled())
|
||||||
{
|
{
|
||||||
|
#ifndef RETRON77
|
||||||
if(wantsToolTip())
|
if(wantsToolTip())
|
||||||
dialog().tooltip().request();
|
dialog().tooltip().request();
|
||||||
|
#endif
|
||||||
|
|
||||||
// Recursively tick widget and all child dialogs and widgets
|
// Recursively tick widget and all child dialogs and widgets
|
||||||
Widget* w = _firstWidget;
|
Widget* w = _firstWidget;
|
||||||
|
@ -97,8 +99,8 @@ void Widget::draw()
|
||||||
|
|
||||||
if(isDirty())
|
if(isDirty())
|
||||||
{
|
{
|
||||||
cerr << " *** draw widget " << typeid(*this).name() << " ***" << endl;
|
//cerr << " *** draw widget " << typeid(*this).name() << " ***" << endl;
|
||||||
//cerr << "w";
|
cerr << "w";
|
||||||
|
|
||||||
FBSurface& s = _boss->dialog().surface();
|
FBSurface& s = _boss->dialog().surface();
|
||||||
int oldX = _x, oldY = _y;
|
int oldX = _x, oldY = _y;
|
||||||
|
|
Loading…
Reference in New Issue