1,7 → 1,7 |
#ifndef KOLIBRI_GUI_H |
#define KOLIBRI_GUI_H |
|
#include "stdlib.h" /* for malloc() */ |
#include <stdlib.h> /* for malloc() */ |
#include <kos32sys.h> |
|
#include "kolibri_debug.h" /* work with debug board */ |
41,6 → 41,8 |
if(kolibri_gui_op_table[current_element -> type].redraw_fn) |
kolibri_gui_op_table[current_element -> type].redraw_fn(current_element -> element); |
|
//sie after fixing calling conventions no more needed |
/* |
switch(current_element -> type) |
{ |
case KOLIBRI_EDIT_BOX: |
48,9 → 50,10 |
__asm__ volatile("push $0x13371337"::); /* Random value pushed to balance stack */ |
/* otherwise edit_box_draw leaves stack unbalanced */ |
/* and GCC jumps like a crazy motha' fucka' */ |
|
break; |
} |
|
*/ |
current_element = current_element -> next; |
|
} while(current_element != some_window->elements); /* Have we covered all elements? */ |
84,11 → 87,11 |
|
do |
{ |
|
if(kolibri_gui_op_table[current_element -> type].mouse_fn) |
kolibri_gui_op_table[current_element -> type].mouse_fn(current_element -> element); |
|
current_element = current_element -> next; |
|
} while(current_element != some_window->elements); /* Have we covered all elements? */ |
} |
} |
121,6 → 124,8 |
/* Also set filters so that window receives mouse events only when active |
and mouse inside window */ |
__asm__ volatile("int $0x40"::"a"(40), "b"(0xC0000027)); |
|
return boxlib_init_status; |
} |
|
/* Note: The current implementation tries to automatically colors |