Changeset bc54f56e in mainline


Ignore:
Timestamp:
2006-06-02T15:15:20Z (19 years ago)
Author:
Josef Cejka <malyzelenyhnus@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a116ef22
Parents:
58fce89
Message:

Fixed bugs in shared buffer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified console/console.c

    r58fce89 rbc54f56e  
    187187               
    188188                                if (interbuffer) {
    189                                         for (i = 0; i < fb_info.cols * fb_info.rows; i++)
    190                                                 interbuffer[i] = conn->screenbuffer.buffer[i]; 
     189                                        for (i = 0; i < conn->screenbuffer.size_x; i++)
     190                                                for (j = 0; j < conn->screenbuffer.size_y; j++)
     191                                                        interbuffer[i + j*conn->screenbuffer.size_x] = *get_field_at(&(conn->screenbuffer),i, j);
     192                                                       
    191193                                        ipc_call_sync(fb_info.phone, FB_DRAW_TEXT_DATA, 0, NULL);               
    192194                                } else {
     
    202204                                                }
    203205
    204                                         ipc_call_async_2(fb_info.phone, FB_CURSOR_GOTO, conn->screenbuffer.position_y, conn->screenbuffer.position_x, NULL, NULL);
    205206                                }
     207                                ipc_call_async_2(fb_info.phone, FB_CURSOR_GOTO, conn->screenbuffer.position_y, conn->screenbuffer.position_x, NULL, NULL);
     208                                ipc_call_async_2(fb_info.phone, FB_SET_STYLE, conn->screenbuffer.style.fg_color, \
     209                                                conn->screenbuffer.style.bg_color, NULL, NULL);
    206210                                ipc_call_async(fb_info.phone, FB_CURSOR_VISIBILITY, 1, NULL, NULL);
    207211
Note: See TracChangeset for help on using the changeset viewer.