Browse Source

fixing sleep

Luis 9 years ago
parent
commit
c6ecacb0a3
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      functions.cpp

+ 4
- 4
functions.cpp View File

@@ -115,7 +115,7 @@ void MainWindow::diceAlpha(){
115 115
     //This loop is used to simulate the dice rolling by
116 116
     //changing the images at a slowing down speed
117 117
     for (int i = 0; i<=150000 ; i=i+5000){
118
-        usleep(i);
118
+        Sleep(i);
119 119
 
120 120
         //First dice image. Since we want random pictures
121 121
         //on each iteration, we get a random number, converted
@@ -173,7 +173,7 @@ void MainWindow::diceBeta(){
173 173
     QString a, b;
174 174
 
175 175
     for (int i = 0; i<=150000 ; i=i+5000){
176
-        usleep(i);
176
+        Sleep(i);
177 177
 
178 178
         a = ":/images/resources/d";
179 179
         a.append(QString::number(rand()%6 + 1));
@@ -205,7 +205,7 @@ void MainWindow::diceGamma(){
205 205
     QString a, b;
206 206
 
207 207
     for (int i = 0; i<=150000 ; i=i+5000){
208
-        usleep(i);
208
+        Sleep(i);
209 209
 
210 210
         a = ":/images/resources/d";
211 211
         a.append(QString::number(rand()%6 + 1));
@@ -239,7 +239,7 @@ void MainWindow::diceDelta(){
239 239
     QString a, b;
240 240
 
241 241
     for (int i = 0; i<=150000 ; i=i+5000){
242
-        usleep(i);
242
+        Sleep(i);
243 243
 
244 244
         a = ":/images/resources/d";
245 245
         a.append(QString::number(rand()%6 + 1));