Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide
translations



Rockbox mail archive

Subject: Re: Jackpot plugin for the player

Re: Jackpot plugin for the player

From: Kjell Ericson <Kjell.Ericson_at_haxx.se>
Date: Tue, 22 Jul 2003 22:51:18 +0200 (CEST)

On Tue, 22 Jul 2003, Pierre Delore wrote:

I haven't tried the game yet, but will do when back from vacation.

> * I redefined 3 patterns. When the game end there is no function to redefine
> the defaut pattern. I was oblige to hard code the default patterns (not good).

Doesn't sound good.

Have you read about Rocklatin? http://rockbox.haxx.se/docs/rocklatin.html

An exampel of redefining patterns look like this:

--------
{
  unsigned char pattern[]={ 0x0a, 0x00, 0x00, 0x0c,
                            0x04, 0x04, 0x0e};
  unsigned char handle;
  handle=lcd_get_locked_pattern();
  lcd_define_pattern(handle, pattern);
  lcd_putc(x, y, handle);
  ...
  lcd_unlock_pattern(handle);
}
-------

I can't see in you code that you use lcd_get_locked_pattern() and that should
be your problem. You shall alloc your four patterns and remember their handles
and use those handles dynamic. When you exit you shall unlock the handles.

The nice part with Rocklatin is that you can define many patterns, as long as
you only use 4/8 own-defined-chars at the time. If you use more than 4 chars
at the same time you shall check that you don't run on an old-lcd player.

 // Kjell (50% inventor of Rocklatin)
Received on 2003-07-22

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy