From 3fee6ac0661fc29b0d31cb97fbdfeba9091815a0 Mon Sep 17 00:00:00 2001 From: Quinn Dunki Date: Sun, 1 Feb 2015 16:36:54 -0800 Subject: [PATCH] Fixed WGFillRect on row 0 crash --- ReadMe.md | 3 +-- rects.s | 2 ++ weegui.dsk | Bin 143360 -> 143360 bytes 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ReadMe.md b/ReadMe.md index ffc9bc4..814d5d7 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -8,8 +8,7 @@ Known issues To Do: ------ - -- Support carriage returns in &print +- Clicking on scroll arrows in basicdemo messes up title rendering - Write sample code - Update side effects in assembly API - Support for frameless views diff --git a/rects.s b/rects.s index 7d5d9df..e5dc2cf 100644 --- a/rects.s +++ b/rects.s @@ -95,6 +95,7 @@ WGFillRect_horzLoopEvenAlignedOddWidth: WGFillRect_horzLoopEvenAlignedEvenWidth: plx ; Prepare for next row dex + bmi WGFillRect_done ; If we were at zero, we'll wrap dangerously cpx PARAM1 bcs WGFillRect_vertLoop bra WGFillRect_done @@ -142,6 +143,7 @@ WGFillRect_horzLoopOddAlignedOddWidth: WGFillRect_horzLoopOddAlignedEvenWidth: plx ; Prepare for next row dex + bmi WGFillRect_done ; If we were at zero, we'll wrap dangerously cpx PARAM1 bcc WGFillRect_done jmp WGFillRect_vertLoop diff --git a/weegui.dsk b/weegui.dsk index 84373d2d1aed5ab43492ebc2d3230632b5335814..4adb605d3436f4758b5d11aac3aa15c0420b433c 100644 GIT binary patch delta 5079 zcma)A3sh9sx!yAa^I$@lU@S9Z)Kg-TnJjWUkgA0A)+%BKogfvwTG~`vC7tvpsdwqU z^#yZy9Nv3m_91O-gvFY8QVzKz7;ln}IygzB!U#ATACcS`(r{B&T3x5ECZ@XX_5ORG z8N{S3tFYLQfB*aYAA6tw|2O=kk)JdUr0F!~!)Dz=gXLE`l%1)+`+oGX#<)E5e#_y4 zv^-57XF=#=RJnWsXVIbuHxv~;vA%dMO8n@*h0@W@EJRl+T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