Changeset 596:5605b642989b

Show
Ignore:
Timestamp:
06/21/08 16:21:00 (7 months ago)
Author:
David Anderson <dave@…>
Branch:
default
Message:

Fix a bug in the display code that caused incorrect line wrapping.

Also fix up the copyright for display.c.

Found by: Martin Beck <martin.beck@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • nxos/base/display.c

    r490 r596  
    1 /* Driver for the NXT's display. 
     1/* Copyright (c) 2008 the NxOS developers 
    22 * 
    3  * This driver provides a high level interface for displaying data. It 
    4  * uses the low-level LCD driver to do actual output. 
     3 * See AUTHORS for a full list of the developers. 
     4 * 
     5 * Redistribution of this file is permitted under 
     6 * the terms of the GNU Public License (GPL) version 2. 
    57 */ 
    68 
     
    9294    display.cursor.x++; 
    9395 
    94     if (display.cursor.x >= LCD_WIDTH) { 
     96    if (display.cursor.x >= LCD_WIDTH / NX__CELL_WIDTH) { 
    9597      display.cursor.x = 0; 
    9698      display.cursor.y++;