Changeset 56


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

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

Location:
trunk/OpenYahtzee
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/OpenYahtzee/openyahtzee.kdevses

    r55 r56  
    77  </Doc0> 
    88  <Doc1 NumberOfViews="1" URL="file:///home/guy/workspace/OpenYahtzee/src/openyahtzee.cpp" > 
    9    <View0 Type="Source" /> 
     9   <View0 line="0" Type="Source" /> 
    1010  </Doc1> 
    1111  <Doc2 NumberOfViews="1" URL="file:///home/guy/workspace/OpenYahtzee/src/MainFrame.cpp" > 
    12    <View0 line="695" Type="Source" /> 
     12   <View0 line="425" Type="Source" /> 
    1313  </Doc2> 
    1414  <Doc3 NumberOfViews="1" URL="file:///home/guy/workspace/OpenYahtzee/src/ObjectsID.h" > 
    15    <View0 line="43" Type="Source" /> 
     15   <View0 Type="Source" /> 
    1616  </Doc3> 
    1717  <Doc4 NumberOfViews="1" URL="file:///home/guy/workspace/OpenYahtzee/src/MainFrame.h" > 
    18    <View0 line="69" Type="Source" /> 
     18   <View0 line="0" Type="Source" /> 
    1919  </Doc4> 
    2020  <Doc5 NumberOfViews="1" URL="file:///home/guy/workspace/OpenYahtzee/src/DBwrapper.h" > 
    21    <View0 line="0" Type="Source" /> 
     21   <View0 Type="Source" /> 
    2222  </Doc5> 
    2323  <Doc6 NumberOfViews="1" URL="file:///home/guy/workspace/OpenYahtzee/src/HighScoreTableDB.cpp" > 
    24    <View0 line="0" Type="Source" /> 
     24   <View0 Type="Source" /> 
    2525  </Doc6> 
    2626  <Doc7 NumberOfViews="1" URL="file:///home/guy/workspace/OpenYahtzee/src/SettingsDialog.cpp" > 
    27    <View0 line="55" Type="Source" /> 
     27   <View0 Type="Source" /> 
    2828  </Doc7> 
    2929  <Doc8 NumberOfViews="1" URL="file:///home/guy/workspace/OpenYahtzee/src/SettingsDB.cpp" > 
     
    3434  </Doc9> 
    3535  <Doc10 NumberOfViews="1" URL="file:///home/guy/workspace/OpenYahtzee/src/HighScoreDialog.cpp" > 
    36    <View0 line="125" Type="Source" /> 
     36   <View0 Type="Source" /> 
    3737  </Doc10> 
    3838  <Doc11 NumberOfViews="1" URL="file:///home/guy/workspace/OpenYahtzee/src/Icon.h" > 
  • 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.