peeks at the current frame returns false if there is no current frame
| 1201 | // peeks at the current frame |
| 1202 | // returns false if there is no current frame |
| 1203 | bool FramePeek(int *x1, int *y1, int *x2, int *y2, bool *clear) { |
| 1204 | if (!FrameStackPtr) |
| 1205 | return false; |
| 1206 | |
| 1207 | *x1 = FrameStackPtr->x1; |
| 1208 | *x2 = FrameStackPtr->x2; |
| 1209 | *y1 = FrameStackPtr->y1; |
| 1210 | *y2 = FrameStackPtr->y2; |
| 1211 | *clear = FrameStackPtr->clear; |
| 1212 | return true; |
| 1213 | } |
| 1214 | |
| 1215 | void StartFrame(bool clear) { |
| 1216 | StartFrame(Game_window_x, Game_window_y, Game_window_x + Game_window_w, Game_window_y + Game_window_h, clear); |