Ignore:
Timestamp:
21/01/07 20:08:47 (6 years ago)
Author:
guyru
Message:

fixed a bug in the animate settings (now changes doesn't require a restart)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/OpenYahtzee/src/MainFrame.cpp

    r55 r56  
    2525 ***********************************************/ 
    2626 
    27 #define DEBUG 
     27// #define DEBUG 
    2828 
    2929#include <wx/wx.h> 
     
    420420                if (data.animate){ 
    421421                        m_settingsdb->SetKey("animate","Yes"); 
     422                        m_animate = true; 
    422423                         
    423424                } else { 
    424425                        m_settingsdb->SetKey("animate","No"); 
     426                        m_animate = false; 
    425427                } 
    426428 
     
    452454                        if (!((wxCheckBox*) FindWindow(i + ID_DICE1KEEP))->IsChecked()) { 
    453455                                dice[i] = rand()%6; 
    454                                 ((wxStaticBitmap*) FindWindow(i + ID_DICE1)) -> SetBitmap(*bitmap_dices[dice[i]]); 
     456                                ((wxDynamicBitmap*) FindWindow(i + ID_DICE1)) -> SetBitmap(*bitmap_dices[dice[i]]); 
    455457                        } 
    456458                } 
Note: See TracChangeset for help on using the changeset viewer.