Logo Search packages:      
Sourcecode: fillets-ng version File versions

bool DemoMode::action_display ( Picture picture  ) 

Store picture to draw it. NOTE: limitY for long subtitles are prepared when display is set before planning start

Definition at line 86 of file DemoMode.cpp.

References Picture::getH(), Picture::getW(), and OptionAgent::setParam().

    if (m_display) {
        delete m_display;
    m_display = picture;

    if (NULL == m_surfaceBuffer) {
        OptionAgent *options = OptionAgent::agent();
        options->setParam("screen_width", m_display->getW());
        options->setParam("screen_height", m_display->getH());

        SubTitleAgent::agent()->setLimitY(2 * m_display->getH());
    return true;

Generated by  Doxygen 1.6.0   Back to index