Fixed WGFillRect on row 0 crash

This commit is contained in:
Quinn Dunki
2015-02-01 16:36:54 -08:00
parent 05200b8ec2
commit 3fee6ac066
3 changed files with 3 additions and 2 deletions

View File

@@ -8,8 +8,7 @@ Known issues
To Do: To Do:
------ ------
- Clicking on scroll arrows in basicdemo messes up title rendering
- Support carriage returns in &print
- Write sample code - Write sample code
- Update side effects in assembly API - Update side effects in assembly API
- Support for frameless views - Support for frameless views

View File

@@ -95,6 +95,7 @@ WGFillRect_horzLoopEvenAlignedOddWidth:
WGFillRect_horzLoopEvenAlignedEvenWidth: WGFillRect_horzLoopEvenAlignedEvenWidth:
plx ; Prepare for next row plx ; Prepare for next row
dex dex
bmi WGFillRect_done ; If we were at zero, we'll wrap dangerously
cpx PARAM1 cpx PARAM1
bcs WGFillRect_vertLoop bcs WGFillRect_vertLoop
bra WGFillRect_done bra WGFillRect_done
@@ -142,6 +143,7 @@ WGFillRect_horzLoopOddAlignedOddWidth:
WGFillRect_horzLoopOddAlignedEvenWidth: WGFillRect_horzLoopOddAlignedEvenWidth:
plx ; Prepare for next row plx ; Prepare for next row
dex dex
bmi WGFillRect_done ; If we were at zero, we'll wrap dangerously
cpx PARAM1 cpx PARAM1
bcc WGFillRect_done bcc WGFillRect_done
jmp WGFillRect_vertLoop jmp WGFillRect_vertLoop

Binary file not shown.