summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
026158b)
changed fb button too
TODO:
1 in fill_rect check boundaries !!
2 vsync
3 the abs pos bug
ifeq ($(backend), SDL)
def = -DWINNIE_SDL
ifeq ($(backend), SDL)
def = -DWINNIE_SDL
int s = (bnstate >> i) & 1;
int prev_s = (prev_state >> i) & 1;
if(s != prev_s) {
int s = (bnstate >> i) & 1;
int prev_s = (prev_state >> i) & 1;
if(s != prev_s) {
- button_callback(top, i, s);
+ Rect rect = top->get_absolute_rect();
+ button_callback(top, i, s, pointer_x - rect.x, pointer_y - rect.y);