Changeset 9805cde in mainline for uspace/app/tetris/screen.c


Ignore:
Timestamp:
2009-01-01T13:31:23Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7122bc7
Parents:
666773c
Message:

Console color support overhaul. Create C library console interface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tetris/screen.c

    r666773c r9805cde  
    5252#include <unistd.h>
    5353#include <io/stream.h>
    54 
     54#include <console.h>
    5555
    5656#include <async.h>
     
    7777
    7878
    79 
    80 static void set_style(int fgcolor, int bgcolor)
    81 {
    82         async_msg_2(con_phone, CONSOLE_SET_STYLE, fgcolor, bgcolor);
    83 }
    84 
    8579static void start_standout(void)
    8680{
    87         set_style(0xf0f0f0, 0);
     81        console_set_rgb_color(0xf0f0f0, 0);
    8882}
    8983
    9084static void resume_normal(void)
    9185{
    92         set_style(0, 0xf0f0f0);
    93 }
    94 
     86        console_set_rgb_color(0, 0xf0f0f0);
     87}
    9588
    9689void clear_screen(void)
Note: See TracChangeset for help on using the changeset viewer.