Rev 1672 | Rev 1674 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1672 | Rev 1673 | ||
---|---|---|---|
Line 212... | Line 212... | ||
212 | /** Switch to new console */ |
212 | /** Switch to new console */ |
213 | static void change_console(int newcons) |
213 | static void change_console(int newcons) |
214 | { |
214 | { |
215 | connection_t *conn; |
215 | connection_t *conn; |
216 | static int console_pixmap = -1; |
216 | static int console_pixmap = -1; |
217 | int i, j; |
217 | int i, j, rc; |
218 | keyfield_t *field; |
218 | keyfield_t *field; |
219 | style_t *style; |
219 | style_t *style; |
220 | char c; |
220 | char c; |
221 | 221 | ||
222 | if (newcons == active_console) |
222 | if (newcons == active_console) |
Line 255... | Line 255... | ||
255 | if (interbuffer) { |
255 | if (interbuffer) { |
256 | for (i = 0; i < conn->screenbuffer.size_x; i++) |
256 | for (i = 0; i < conn->screenbuffer.size_x; i++) |
257 | for (j = 0; j < conn->screenbuffer.size_y; j++) |
257 | for (j = 0; j < conn->screenbuffer.size_y; j++) |
258 | interbuffer[i + j*conn->screenbuffer.size_x] = *get_field_at(&(conn->screenbuffer),i, j); |
258 | interbuffer[i + j*conn->screenbuffer.size_x] = *get_field_at(&(conn->screenbuffer),i, j); |
259 | /* This call can preempt, but we are already at the end */ |
259 | /* This call can preempt, but we are already at the end */ |
260 | j = async_req_2(fb_info.phone, FB_DRAW_TEXT_DATA, 0, 0, NULL, NULL); |
260 | rc = async_req_2(fb_info.phone, FB_DRAW_TEXT_DATA, 0, 0, NULL, NULL); |
261 | }; |
261 | }; |
262 | 262 | ||
263 | if ((!interbuffer) || (j != 0)){ |
263 | if ((!interbuffer) || (j != 0)) { |
264 | set_style(&conn->screenbuffer.style); |
264 | set_style(&conn->screenbuffer.style); |
265 | clrscr(); |
265 | clrscr(); |
266 | style = &conn->screenbuffer.style; |
266 | style = &conn->screenbuffer.style; |
267 | 267 | ||
268 | for (j = 0; j < conn->screenbuffer.size_y; j++) |
268 | for (j = 0; j < conn->screenbuffer.size_y; j++) |