Changeset 596:5605b642989b
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r490
|
r596
|
|
| 1 | | /* Driver for the NXT's display. |
| | 1 | /* Copyright (c) 2008 the NxOS developers |
| 2 | 2 | * |
| 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. |
| 5 | 7 | */ |
| 6 | 8 | |
| … |
… |
|
| 92 | 94 | display.cursor.x++; |
| 93 | 95 | |
| 94 | | if (display.cursor.x >= LCD_WIDTH) { |
| | 96 | if (display.cursor.x >= LCD_WIDTH / NX__CELL_WIDTH) { |
| 95 | 97 | display.cursor.x = 0; |
| 96 | 98 | display.cursor.y++; |