Re: [AD] "clear" work bad with sub-bitmaps |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
here it's the fix for mmx clear_to_color code made by bob a little bit
modified. can someone commit it? (i've tested it and solves the bug) (yes
eric, now the changes really follow the comments ;)
--- /allegro/src/i386/iblit8.s Sat Feb 10 08:20:20 2001
+++ allegro/src/i386/iblit8.s Sat Feb 10 08:31:30 2001
@@ -195,7 +194,8 @@
addl $8, %edi /* we set %edi to the next aligned memory
address */
- addl %ecx, %eax /* and adjust %ecx to reflect the change
*/
+ addl %eax, %ecx /* and adjust %ecx to reflect the change
*/
+
clearMMXseg_aligned:
movl %ecx, %eax /* save for later */
--- /allegro/src/i386/iblit16.s Sun May 14 16:17:14 2000
+++ allegro/src/i386/iblit16.s Sat Feb 10 08:28:38 2001
@@ -197,7 +197,7 @@
addl $8, %edi /* we set %edi to the next aligned memory
address */
- addl %ecx, %eax /* and adjust %ecx to reflect the change
*/
+ addl %eax, %ecx /* and adjust %ecx to reflect the change
*/
clearMMXseg_aligned:
movl %ecx, %eax /* save for later */
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.