Rev 6391 | Rev 6456 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6391 | Rev 6393 | ||
---|---|---|---|
Line 60... | Line 60... | ||
60 | new_textbox -> blur_border_color = 0x6a9480; |
60 | new_textbox -> blur_border_color = 0x6a9480; |
61 | new_textbox -> text_color = kolibri_color_table.color_work_text; /* Always black text when typing */ |
61 | new_textbox -> text_color = kolibri_color_table.color_work_text; /* Always black text when typing */ |
62 | new_textbox -> max = max_chars; |
62 | new_textbox -> max = max_chars; |
63 | new_textbox -> text = text_buffer; |
63 | new_textbox -> text = text_buffer; |
64 | new_textbox -> mouse_variable = 1; /* let the mouse take control? */ |
64 | new_textbox -> mouse_variable = 1; /* let the mouse take control? */ |
65 | new_textbox -> flags = 0x00004002; /*ed_focus + ed_always_focus */ |
65 | new_textbox -> flags = 0x00000000; |
66 | - | ||
67 | /* If these lines are uncommented, the executable will crash for no reason at start */ |
66 | /* If these lines are uncommented, the executable will crash for no reason at start */ |
68 | /* Even though these lines are not ever read it ALWAYS causes a crash, even crashes MTDBG. What gives? */ |
67 | /* Even though these lines are not ever read it ALWAYS causes a crash, even crashes MTDBG. What gives? */ |
Line 69... | Line 68... | ||
69 | 68 | ||
70 | new_textbox -> size = 0; |
69 | new_textbox -> size = 0; |
Line 84... | Line 83... | ||
84 | /* because inline assembly in GCC is a PITA and interferes with the EAX (AH) register */ |
83 | /* because inline assembly in GCC is a PITA and interferes with the EAX (AH) register */ |
85 | /* which edit_box_key requires */ |
84 | /* which edit_box_key requires */ |
86 | extern void editbox_key(struct edit_box *) __attribute__((__stdcall__)); |
85 | extern void editbox_key(struct edit_box *) __attribute__((__stdcall__)); |
Line 87... | Line 86... | ||
87 | 86 | ||
88 | extern void (*edit_box_mouse)(struct edit_box *) __attribute__((__stdcall__)); |
- | |
- | 87 | extern void (*edit_box_mouse)(struct edit_box *) __attribute__((__stdcall__)); |
|
89 | 88 | extern volatile unsigned press_key; |