equal
deleted
inserted
replaced
173 // p1 = 0 decrease pause counter |
173 // p1 = 0 decrease pause counter |
174 // p1 = 1 increase pause counter |
174 // p1 = 1 increase pause counter |
175 int32 CmdPause(int x, int y, uint32 flags, uint32 p1, uint32 p2) |
175 int32 CmdPause(int x, int y, uint32 flags, uint32 p1, uint32 p2) |
176 { |
176 { |
177 if (flags & DC_EXEC) { |
177 if (flags & DC_EXEC) { |
178 _pause += p1?1:-1; |
178 _pause += (p1 == 1) ? 1 : -1; |
179 if(_pause==(byte)-1) _pause = 0; |
179 if (_pause == (byte)-1) _pause = 0; |
180 InvalidateWindow(WC_STATUS_BAR, 0); |
180 InvalidateWindow(WC_STATUS_BAR, 0); |
181 InvalidateWindow(WC_MAIN_TOOLBAR, 0); |
181 InvalidateWindow(WC_MAIN_TOOLBAR, 0); |
182 } |
182 } |
183 return 0; |
183 return 0; |
184 } |
184 } |