… | |
… | |
1193 | enum { |
1193 | enum { |
1194 | BG_IS_VALID = 1 << 0, |
1194 | BG_IS_VALID = 1 << 0, |
1195 | |
1195 | |
1196 | BG_IS_TRANSPARENT = 1 << 1, |
1196 | BG_IS_TRANSPARENT = 1 << 1, |
1197 | BG_NEEDS_REFRESH = 1 << 2, |
1197 | BG_NEEDS_REFRESH = 1 << 2, |
|
|
1198 | BG_INHIBIT_RENDER = 1 << 3, |
1198 | }; |
1199 | }; |
1199 | |
1200 | |
1200 | uint8_t bg_flags; |
1201 | uint8_t bg_flags; |
1201 | |
1202 | |
1202 | # if BG_IMAGE_FROM_FILE |
1203 | # if BG_IMAGE_FROM_FILE |
… | |
… | |
1230 | int target_y; |
1231 | int target_y; |
1231 | bool bg_set_position (int x, int y); |
1232 | bool bg_set_position (int x, int y); |
1232 | bool bg_window_size_sensitive (); |
1233 | bool bg_window_size_sensitive (); |
1233 | bool bg_window_position_sensitive (); |
1234 | bool bg_window_position_sensitive (); |
1234 | |
1235 | |
1235 | bool bg_render (); |
1236 | void bg_render (); |
1236 | void bg_invalidate () |
1237 | void bg_invalidate () |
1237 | { |
1238 | { |
1238 | bg_flags &= ~BG_IS_VALID; |
1239 | bg_flags &= ~BG_IS_VALID; |
1239 | } |
1240 | } |
1240 | #endif |
1241 | #endif |