Re: Neil demo - quick fix

new topic     » topic index » view thread      » older message » newer message

I've discovered that the crash is in the rle-sprite drawing routines...
so heres a patch that will change the spinners to use clear_blit instead
of rle_blit.  I didn't notice much of a slowdown... rle-blits may not be
as beneficial as I had thought.

In gamedemo.ex, procedure init_sprites(), replace spinner with:
    spinner = {new_source({sprite_vs,0,32,32,32,16,16}),3,
               new_source({sprite_vs,32,32,32,32,16,16}),5,
               new_source({sprite_vs,64,32,32,32,16,16}),7,
               new_source({sprite_vs,96,32,32,32,16,16}),1}

In gamedemo.ex, procedure do_spinner(), change rle_blit to clear_blit as:
    if sequence(sprite[2]) then
        sprite[2] = new_command(clear_blit, 0, back_buffer & sprite[2])
    end if

Later,
 _______  ______  _______  ______
[    _  \[    _ ][ _   _ ][    _ ]
[/| [_] |[/| [_\][/ | | \][/| [_\]
  |  ___/  |  _]    | |     |  _]
[\| [/]  [\| [_/] [\| |/] [\| [_/]
[_____]  [______] [_____] [______]
xseal at harborside.com  ICQ:13466657
http://www.harborside.com/home/x/xseal/euphoria/

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu