Rev 3248 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3248 | Rev 3292 | ||
---|---|---|---|
Line 158... | Line 158... | ||
158 | rc.t = 0; |
158 | rc.t = 0; |
159 | rc.r = cpt->ctrl.w - 25 - 16 - 5 - 8; |
159 | rc.r = cpt->ctrl.w - 25 - 16 - 5 - 8; |
160 | rc.b = 18; |
160 | rc.b = 18; |
161 | 161 | ||
Line 162... | Line -... | ||
162 | printf(cpt->text); |
- | |
163 | draw_text_ext(cpt->ctx.pixmap, win_font, cpt->text, &rc, 0xFFFFFFFF); |
162 | draw_text_ext(cpt->ctx.pixmap, win_font, cpt->text, &rc, 0xFFFFFFFF); |
Line 164... | Line 163... | ||
164 | 163 | ||
165 | ctrl_t *child; |
164 | ctrl_t *child; |
Line 217... | Line 216... | ||
217 | case MSG_COMMAND: |
216 | case MSG_COMMAND: |
218 | switch((short)arg1) |
217 | switch((short)arg1) |
219 | { |
218 | { |
220 | case ID_CLOSE: |
219 | case ID_CLOSE: |
221 | win = (window_t*)ctrl->parent; |
- | |
222 | win->win_command = WIN_CLOSED; |
220 | win->win_command = WIN_CLOSED; |
223 | break; |
221 | break; |
Line 224... | Line 222... | ||
224 | 222 | ||
225 | case ID_MINIMIZE: |
223 | case ID_MINIMIZE: |
226 | __asm__ __volatile__( |
224 | __asm__ __volatile__( |
227 | "int $0x40" |
225 | "int $0x40" |
- | 226 | ::"a"(18),"b"(10)); |
|
- | 227 | win->win_state = MINIMIZED; |
|
228 | ::"a"(18),"b"(10)); |
228 | send_message((ctrl_t*)win, MSG_SIZE, 0, 0); |
229 | break; |
229 | break; |
230 | default: |
230 | default: |
231 | break; |
231 | break; |