Changeset 8dc12ac in mainline for uspace/srv/fb/fb.c


Ignore:
Timestamp:
2009-06-03T18:41:27Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5d0e461
Parents:
424cd43
Message:

framebuffer server rewrite: cleanup, always use canonical order of coordinates (x, y)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fb/fb.c

    r424cd43 r8dc12ac  
    5252#include <kernel/errno.h>
    5353#include <kernel/genarch/fb/visuals.h>
    54 #include <console/color.h>
    55 #include <console/style.h>
     54#include <io/color.h>
     55#include <io/style.h>
    5656#include <async.h>
    5757#include <bool.h>
     
    376376static void vport_redraw(viewport_t *vport)
    377377{
     378        unsigned int col;
    378379        unsigned int row;
    379         unsigned int col;
    380380       
    381381        for (row = 0; row < vport->rows; row++) {
     
    432432static void vport_scroll(viewport_t *vport, int lines)
    433433{
     434        unsigned int col;
    434435        unsigned int row;
    435         unsigned int col;
    436436        unsigned int x;
    437437        unsigned int y;
     
    15651565                int scroll;
    15661566                wchar_t ch;
    1567                 unsigned int row, col;
     1567                unsigned int col, row;
    15681568               
    15691569                if ((vport->cursor_active) || (anims_enabled))
     
    16021602                case FB_PUTCHAR:
    16031603                        ch = IPC_GET_ARG1(call);
    1604                         row = IPC_GET_ARG2(call);
    1605                         col = IPC_GET_ARG3(call);
     1604                        col = IPC_GET_ARG2(call);
     1605                        row = IPC_GET_ARG3(call);
    16061606                       
    16071607                        if ((col >= vport->cols) || (row >= vport->rows)) {
     
    16211621                        break;
    16221622                case FB_CURSOR_GOTO:
    1623                         row = IPC_GET_ARG1(call);
    1624                         col = IPC_GET_ARG2(call);
     1623                        col = IPC_GET_ARG1(call);
     1624                        row = IPC_GET_ARG2(call);
    16251625                       
    16261626                        if ((col >= vport->cols) || (row >= vport->rows)) {
     
    16421642                        break;
    16431643                case FB_GET_CSIZE:
    1644                         ipc_answer_2(callid, EOK, vport->rows, vport->cols);
     1644                        ipc_answer_2(callid, EOK, vport->cols, vport->rows);
    16451645                        continue;
    16461646                case FB_SCROLL:
Note: See TracChangeset for help on using the changeset viewer.