Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/console/gcons.c

    rffa2c8ef r7e752b2  
    3434
    3535#include <ipc/fb.h>
     36#include <ipc/ipc.h>
    3637#include <async.h>
    3738#include <stdio.h>
     
    8182
    8283static bool use_gcons = false;
    83 static sysarg_t xres;
    84 static sysarg_t yres;
     84static ipcarg_t xres;
     85static ipcarg_t yres;
    8586
    8687enum butstate {
     
    106107static size_t active_console = 0;
    107108
    108 static sysarg_t mouse_x = 0;
    109 static sysarg_t mouse_y= 0;
     109static ipcarg_t mouse_x = 0;
     110static ipcarg_t mouse_y= 0;
    110111
    111112static bool btn_pressed = false;
    112 static sysarg_t btn_x = 0;
    113 static sysarg_t btn_y = 0;
     113static ipcarg_t btn_x = 0;
     114static ipcarg_t btn_y = 0;
    114115
    115116static void vp_switch(int vp)
     
    119120
    120121/** Create view port */
    121 static int vp_create(sysarg_t x, sysarg_t y, sysarg_t width, sysarg_t height)
     122static int vp_create(ipcarg_t x, ipcarg_t y, ipcarg_t width, ipcarg_t height)
    122123{
    123124        return async_req_2_0(fbphone, FB_VIEWPORT_CREATE, (x << 16) | y,
     
    136137
    137138/** Transparent putchar */
    138 static void tran_putch(wchar_t ch, sysarg_t col, sysarg_t row)
     139static void tran_putch(wchar_t ch, ipcarg_t col, ipcarg_t row)
    139140{
    140141        async_msg_3(fbphone, FB_PUTCHAR, ch, col, row);
     
    296297}
    297298
    298 static int gcons_find_conbut(sysarg_t x, sysarg_t y)
    299 {
    300         sysarg_t status_start = STATUS_START + (xres - 800) / 2;
     299static int gcons_find_conbut(ipcarg_t x, ipcarg_t y)
     300{
     301        ipcarg_t status_start = STATUS_START + (xres - 800) / 2;
    301302       
    302303        if ((y < STATUS_TOP) || (y >= STATUS_TOP + STATUS_HEIGHT))
     
    312313                return -1;
    313314       
    314         sysarg_t btn = (x - status_start) / (STATUS_WIDTH + STATUS_SPACE);
     315        ipcarg_t btn = (x - status_start) / (STATUS_WIDTH + STATUS_SPACE);
    315316       
    316317        if (btn < CONSOLE_COUNT)
     
    362363 *
    363364 */
    364 static void draw_pixmap(char *logo, size_t size, sysarg_t x, sysarg_t y)
     365static void draw_pixmap(char *logo, size_t size, ipcarg_t x, ipcarg_t y)
    365366{
    366367        /* Create area */
     
    373374       
    374375        /* Send area */
    375         int rc = async_req_1_0(fbphone, FB_PREPARE_SHM, (sysarg_t) shm);
     376        int rc = async_req_1_0(fbphone, FB_PREPARE_SHM, (ipcarg_t) shm);
    376377        if (rc)
    377378                goto exit;
     
    435436       
    436437        /* Send area */
    437         int rc = async_req_1_0(fbphone, FB_PREPARE_SHM, (sysarg_t) shm);
     438        int rc = async_req_1_0(fbphone, FB_PREPARE_SHM, (ipcarg_t) shm);
    438439        if (rc)
    439440                goto exit;
     
    512513       
    513514        /* Create status buttons */
    514         sysarg_t status_start = STATUS_START + (xres - 800) / 2;
     515        ipcarg_t status_start = STATUS_START + (xres - 800) / 2;
    515516        size_t i;
    516517        for (i = 0; i < CONSOLE_COUNT; i++) {
Note: See TracChangeset for help on using the changeset viewer.