Changeset c738d65 in mainline for uspace/console/screenbuffer.c


Ignore:
Timestamp:
2007-01-15T22:11:24Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d7baee6
Parents:
d78d603
Message:

Improve formatting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/console/screenbuffer.c

    rd78d603 rc738d65  
    3737#include <unistd.h>
    3838
    39 /** Store one character to screenbuffer. Its position is determined by scr->position_x and scr->position_y.
     39/** Store one character to screenbuffer. Its position is determined by
     40 * scr->position_x and scr->position_y.
     41 *
    4042 * @param scr   screenbuffer
    4143 * @param c     stored character
     
    5961screenbuffer_t *screenbuffer_init(screenbuffer_t *scr, int size_x, int size_y)
    6062{
    61         if ((scr->buffer = (keyfield_t *)malloc(sizeof(keyfield_t) * size_x * size_y)) == NULL) {
     63        scr->buffer = (keyfield_t *) malloc(sizeof(keyfield_t) * size_x * size_y);
     64        if (!scr->buffer) {
    6265                return NULL;
    6366        }
     
    100103       
    101104        for (i = 0; i < scr->size_x; i++) {
    102                 scr->buffer[i + line*scr->size_x].character = ' ';
    103                 scr->buffer[i + line*scr->size_x].style = scr->style;
     105                scr->buffer[i + line * scr->size_x].character = ' ';
     106                scr->buffer[i + line * scr->size_x].style = scr->style;
    104107        }
    105108}
     
    143146/** @}
    144147 */
    145 
Note: See TracChangeset for help on using the changeset viewer.