2006-04-08 10:27:34 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* Copyright (C) 2005 Peter D'Hoye
|
|
|
|
*
|
2008-06-28 18:10:04 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2006-04-08 10:27:34 +00:00
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
#include "plugin.h"
|
2008-11-20 11:27:31 +00:00
|
|
|
#include "lib/helper.h"
|
|
|
|
#include "lib/grey.h"
|
2006-04-08 10:27:34 +00:00
|
|
|
|
|
|
|
#ifdef HAVE_LCD_BITMAP
|
|
|
|
|
2008-03-02 16:57:14 +00:00
|
|
|
PLUGIN_IRAM_DECLARE
|
|
|
|
|
2007-07-27 09:57:27 +00:00
|
|
|
#if (CONFIG_KEYPAD == IPOD_4G_PAD) || (CONFIG_KEYPAD == IPOD_3G_PAD) || \
|
|
|
|
(CONFIG_KEYPAD == IPOD_1G2G_PAD)
|
2006-04-08 10:27:34 +00:00
|
|
|
#define FPS_QUIT BUTTON_MENU
|
2008-03-22 10:24:28 +00:00
|
|
|
#elif CONFIG_KEYPAD == IAUDIO_M3_PAD
|
|
|
|
#define FPS_QUIT BUTTON_RC_REC
|
2009-05-13 08:27:36 +00:00
|
|
|
#elif CONFIG_KEYPAD == SANSA_FUZE_PAD
|
|
|
|
#define FPS_QUIT (BUTTON_HOME|BUTTON_REPEAT)
|
2006-04-11 19:29:01 +00:00
|
|
|
#elif defined(BUTTON_OFF)
|
2006-04-08 10:27:34 +00:00
|
|
|
#define FPS_QUIT BUTTON_OFF
|
2006-04-11 08:03:45 +00:00
|
|
|
#else
|
|
|
|
#define FPS_QUIT BUTTON_POWER
|
|
|
|
#endif
|
2006-04-08 10:27:34 +00:00
|
|
|
|
2007-10-13 22:32:35 +00:00
|
|
|
#define DURATION (2*HZ) /* longer duration gives more precise results */
|
|
|
|
|
2006-04-08 10:27:34 +00:00
|
|
|
PLUGIN_HEADER
|
|
|
|
|
2007-10-13 22:32:35 +00:00
|
|
|
/* Screen logging */
|
|
|
|
static int line;
|
|
|
|
static int max_line;
|
2006-04-11 19:29:01 +00:00
|
|
|
#ifdef HAVE_REMOTE_LCD
|
2007-10-13 22:32:35 +00:00
|
|
|
static int remote_line;
|
|
|
|
static int remote_max_line;
|
2006-04-11 19:29:01 +00:00
|
|
|
#endif
|
2008-01-08 00:06:54 +00:00
|
|
|
#if LCD_DEPTH < 4
|
|
|
|
static unsigned char *gbuf;
|
|
|
|
static size_t gbuf_size;
|
|
|
|
#endif
|
2006-04-08 10:27:34 +00:00
|
|
|
|
2007-10-13 22:32:35 +00:00
|
|
|
static void log_init(void)
|
|
|
|
{
|
|
|
|
int h;
|
2006-04-08 10:27:34 +00:00
|
|
|
|
2007-10-13 22:32:35 +00:00
|
|
|
rb->lcd_getstringsize("A", NULL, &h);
|
|
|
|
max_line = LCD_HEIGHT / h;
|
|
|
|
line = 0;
|
2006-04-08 10:27:34 +00:00
|
|
|
rb->lcd_clear_display();
|
2007-10-13 22:32:35 +00:00
|
|
|
rb->lcd_update();
|
2006-04-11 19:29:01 +00:00
|
|
|
#ifdef HAVE_REMOTE_LCD
|
2007-10-13 22:32:35 +00:00
|
|
|
rb->lcd_remote_getstringsize("A", NULL, &h);
|
|
|
|
remote_max_line = LCD_REMOTE_HEIGHT / h;
|
|
|
|
remote_line = 0;
|
|
|
|
rb->lcd_remote_clear_display();
|
2006-04-11 19:29:01 +00:00
|
|
|
rb->lcd_remote_update();
|
|
|
|
#endif
|
2007-10-13 22:32:35 +00:00
|
|
|
}
|
2006-04-08 10:27:34 +00:00
|
|
|
|
2007-10-13 22:32:35 +00:00
|
|
|
static void log_text(char *text)
|
|
|
|
{
|
|
|
|
rb->lcd_puts(0, line, text);
|
|
|
|
if (++line >= max_line)
|
|
|
|
line = 0;
|
|
|
|
rb->lcd_update();
|
|
|
|
#ifdef HAVE_REMOTE_LCD
|
|
|
|
rb->lcd_remote_puts(0, remote_line, text);
|
|
|
|
if (++remote_line >= remote_max_line)
|
|
|
|
remote_line = 0;
|
|
|
|
rb->lcd_remote_update();
|
2007-08-05 20:41:49 +00:00
|
|
|
#endif
|
2007-10-13 22:32:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static int calc_tenth_fps(int framecount, long ticks)
|
|
|
|
{
|
|
|
|
return (10*HZ) * framecount / ticks;
|
|
|
|
}
|
2006-04-11 19:29:01 +00:00
|
|
|
|
2007-10-13 22:32:35 +00:00
|
|
|
static void time_main_update(void)
|
|
|
|
{
|
|
|
|
char str[32]; /* text buffer */
|
|
|
|
long time_start; /* start tickcount */
|
|
|
|
long time_end; /* end tickcount */
|
|
|
|
int frame_count;
|
|
|
|
int fps;
|
|
|
|
|
|
|
|
const int part14_x = LCD_WIDTH/4; /* x-offset for 1/4 update test */
|
|
|
|
const int part14_w = LCD_WIDTH/2; /* x-size for 1/4 update test */
|
|
|
|
const int part14_y = LCD_HEIGHT/4; /* y-offset for 1/4 update test */
|
|
|
|
const int part14_h = LCD_HEIGHT/2; /* y-size for 1/4 update test */
|
|
|
|
|
|
|
|
/* Test 1: full LCD update */
|
2006-04-08 10:27:34 +00:00
|
|
|
frame_count = 0;
|
2007-10-13 22:32:35 +00:00
|
|
|
rb->sleep(0); /* sync to tick */
|
2006-04-08 10:27:34 +00:00
|
|
|
time_start = *rb->current_tick;
|
2007-10-13 22:32:35 +00:00
|
|
|
while((time_end = *rb->current_tick) - time_start < DURATION)
|
2006-04-08 10:27:34 +00:00
|
|
|
{
|
|
|
|
rb->lcd_update();
|
|
|
|
frame_count++;
|
|
|
|
}
|
2007-10-13 22:32:35 +00:00
|
|
|
fps = calc_tenth_fps(frame_count, time_end - time_start);
|
|
|
|
rb->snprintf(str, sizeof(str), "1/1: %d.%d fps", fps / 10, fps % 10);
|
|
|
|
log_text(str);
|
2006-04-08 10:27:34 +00:00
|
|
|
|
2007-10-13 22:32:35 +00:00
|
|
|
/* Test 2: quarter LCD update */
|
2006-04-08 10:27:34 +00:00
|
|
|
frame_count = 0;
|
2007-10-13 22:32:35 +00:00
|
|
|
rb->sleep(0); /* sync to tick */
|
2006-04-08 10:27:34 +00:00
|
|
|
time_start = *rb->current_tick;
|
2007-10-13 22:32:35 +00:00
|
|
|
while((time_end = *rb->current_tick) - time_start < DURATION)
|
2006-04-08 10:27:34 +00:00
|
|
|
{
|
|
|
|
rb->lcd_update_rect(part14_x, part14_y, part14_w, part14_h);
|
|
|
|
frame_count++;
|
|
|
|
}
|
2007-10-13 22:32:35 +00:00
|
|
|
fps = calc_tenth_fps(frame_count, time_end - time_start);
|
|
|
|
rb->snprintf(str, sizeof(str), "1/4: %d.%d fps", fps / 10, fps % 10);
|
|
|
|
log_text(str);
|
|
|
|
}
|
2006-04-08 10:27:34 +00:00
|
|
|
|
2007-10-13 22:32:35 +00:00
|
|
|
#ifdef HAVE_LCD_COLOR
|
|
|
|
|
|
|
|
#if LCD_WIDTH >= LCD_HEIGHT
|
|
|
|
#define YUV_WIDTH LCD_WIDTH
|
|
|
|
#define YUV_HEIGHT LCD_HEIGHT
|
|
|
|
#else /* Assume the screen is rotated on portrait LCDs */
|
|
|
|
#define YUV_WIDTH LCD_HEIGHT
|
|
|
|
#define YUV_HEIGHT LCD_WIDTH
|
|
|
|
#endif
|
|
|
|
|
|
|
|
static unsigned char ydata[YUV_HEIGHT][YUV_WIDTH];
|
|
|
|
static unsigned char udata[YUV_HEIGHT/2][YUV_WIDTH/2];
|
|
|
|
static unsigned char vdata[YUV_HEIGHT/2][YUV_WIDTH/2];
|
|
|
|
|
|
|
|
static unsigned char * const yuvbuf[3] = {
|
|
|
|
(void*)ydata,
|
|
|
|
(void*)udata,
|
|
|
|
(void*)vdata
|
|
|
|
};
|
|
|
|
|
2007-10-15 23:07:25 +00:00
|
|
|
static void make_gradient_rect(int width, int height)
|
2007-10-13 22:32:35 +00:00
|
|
|
{
|
|
|
|
unsigned char vline[YUV_WIDTH/2];
|
|
|
|
int x, y;
|
|
|
|
|
|
|
|
width /= 2;
|
|
|
|
height /= 2;
|
|
|
|
|
|
|
|
for (x = 0; x < width; x++)
|
|
|
|
vline[x] = (x << 8) / width;
|
|
|
|
for (y = 0; y < height; y++)
|
|
|
|
{
|
|
|
|
rb->memset(udata[y], (y << 8) / height, width);
|
|
|
|
rb->memcpy(vdata[y], vline, width);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void time_main_yuv(void)
|
|
|
|
{
|
|
|
|
char str[32]; /* text buffer */
|
|
|
|
long time_start; /* start tickcount */
|
|
|
|
long time_end; /* end tickcount */
|
|
|
|
int frame_count;
|
|
|
|
int fps;
|
|
|
|
|
|
|
|
const int part14_x = YUV_WIDTH/4; /* x-offset for 1/4 update test */
|
|
|
|
const int part14_w = YUV_WIDTH/2; /* x-size for 1/4 update test */
|
|
|
|
const int part14_y = YUV_HEIGHT/4; /* y-offset for 1/4 update test */
|
|
|
|
const int part14_h = YUV_HEIGHT/2; /* y-size for 1/4 update test */
|
2006-04-11 19:29:01 +00:00
|
|
|
|
2007-10-13 22:32:35 +00:00
|
|
|
rb->memset(ydata, 128, sizeof(ydata)); /* medium grey */
|
|
|
|
|
|
|
|
/* Test 1: full LCD update */
|
|
|
|
make_gradient_rect(YUV_WIDTH, YUV_HEIGHT);
|
|
|
|
|
|
|
|
frame_count = 0;
|
|
|
|
rb->sleep(0); /* sync to tick */
|
|
|
|
time_start = *rb->current_tick;
|
|
|
|
while((time_end = *rb->current_tick) - time_start < DURATION)
|
|
|
|
{
|
2008-03-24 00:35:53 +00:00
|
|
|
rb->lcd_blit_yuv(yuvbuf, 0, 0, YUV_WIDTH,
|
2007-10-13 22:32:35 +00:00
|
|
|
0, 0, YUV_WIDTH, YUV_HEIGHT);
|
|
|
|
frame_count++;
|
|
|
|
}
|
|
|
|
fps = calc_tenth_fps(frame_count, time_end - time_start);
|
|
|
|
rb->snprintf(str, sizeof(str), "1/1: %d.%d fps", fps / 10, fps % 10);
|
|
|
|
log_text(str);
|
|
|
|
|
|
|
|
/* Test 2: quarter LCD update */
|
|
|
|
make_gradient_rect(YUV_WIDTH/2, YUV_HEIGHT/2);
|
|
|
|
|
|
|
|
frame_count = 0;
|
|
|
|
rb->sleep(0); /* sync to tick */
|
|
|
|
time_start = *rb->current_tick;
|
|
|
|
while((time_end = *rb->current_tick) - time_start < DURATION)
|
|
|
|
{
|
2008-03-24 00:35:53 +00:00
|
|
|
rb->lcd_blit_yuv(yuvbuf, 0, 0, YUV_WIDTH,
|
2007-10-13 22:32:35 +00:00
|
|
|
part14_x, part14_y, part14_w, part14_h);
|
|
|
|
frame_count++;
|
|
|
|
}
|
|
|
|
fps = calc_tenth_fps(frame_count, time_end - time_start);
|
|
|
|
rb->snprintf(str, sizeof(str), "1/4: %d.%d fps", fps / 10, fps % 10);
|
|
|
|
log_text(str);
|
|
|
|
}
|
2007-08-05 20:41:49 +00:00
|
|
|
#endif
|
2006-04-11 19:29:01 +00:00
|
|
|
|
|
|
|
#ifdef HAVE_REMOTE_LCD
|
2007-10-13 22:32:35 +00:00
|
|
|
static void time_remote_update(void)
|
|
|
|
{
|
|
|
|
char str[32]; /* text buffer */
|
|
|
|
long time_start; /* start tickcount */
|
|
|
|
long time_end; /* end tickcount */
|
|
|
|
int frame_count;
|
|
|
|
int fps;
|
2006-04-11 19:29:01 +00:00
|
|
|
|
2007-10-13 22:32:35 +00:00
|
|
|
const int part14_x = LCD_REMOTE_WIDTH/4; /* x-offset for 1/4 update test */
|
|
|
|
const int part14_w = LCD_REMOTE_WIDTH/2; /* x-size for 1/4 update test */
|
|
|
|
const int part14_y = LCD_REMOTE_HEIGHT/4; /* y-offset for 1/4 update test */
|
|
|
|
const int part14_h = LCD_REMOTE_HEIGHT/2; /* y-size for 1/4 update test */
|
2006-04-11 19:29:01 +00:00
|
|
|
|
2007-10-13 22:32:35 +00:00
|
|
|
/* Test 1: full LCD update */
|
2006-04-11 19:29:01 +00:00
|
|
|
frame_count = 0;
|
2007-10-13 22:32:35 +00:00
|
|
|
rb->sleep(0); /* sync to tick */
|
2006-04-11 19:29:01 +00:00
|
|
|
time_start = *rb->current_tick;
|
2007-10-13 22:32:35 +00:00
|
|
|
while((time_end = *rb->current_tick) - time_start < DURATION)
|
2006-04-11 19:29:01 +00:00
|
|
|
{
|
|
|
|
rb->lcd_remote_update();
|
|
|
|
frame_count++;
|
|
|
|
}
|
2007-10-13 22:32:35 +00:00
|
|
|
fps = calc_tenth_fps(frame_count, time_end - time_start);
|
|
|
|
rb->snprintf(str, sizeof(str), "1/1: %d.%d fps", fps / 10, fps % 10);
|
|
|
|
log_text(str);
|
2006-04-11 19:29:01 +00:00
|
|
|
|
2007-10-13 22:32:35 +00:00
|
|
|
/* Test 2: quarter LCD update */
|
2006-04-11 19:29:01 +00:00
|
|
|
frame_count = 0;
|
2007-10-13 22:32:35 +00:00
|
|
|
rb->sleep(0); /* sync to tick */
|
2006-04-11 19:29:01 +00:00
|
|
|
time_start = *rb->current_tick;
|
2007-10-13 22:32:35 +00:00
|
|
|
while((time_end = *rb->current_tick) - time_start < DURATION)
|
2006-04-11 19:29:01 +00:00
|
|
|
{
|
2007-10-13 22:32:35 +00:00
|
|
|
rb->lcd_remote_update_rect(part14_x, part14_y, part14_w, part14_h);
|
2006-04-11 19:29:01 +00:00
|
|
|
frame_count++;
|
|
|
|
}
|
2007-10-13 22:32:35 +00:00
|
|
|
fps = calc_tenth_fps(frame_count, time_end - time_start);
|
|
|
|
rb->snprintf(str, sizeof(str), "1/4: %d.%d fps", fps / 10, fps % 10);
|
|
|
|
log_text(str);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2008-03-25 23:21:36 +00:00
|
|
|
#if LCD_DEPTH < 4
|
2008-01-13 00:11:43 +00:00
|
|
|
|
2008-03-02 16:57:14 +00:00
|
|
|
GREY_INFO_STRUCT_IRAM
|
2008-01-08 00:06:54 +00:00
|
|
|
static unsigned char greydata[LCD_HEIGHT][LCD_WIDTH];
|
|
|
|
|
|
|
|
static void make_grey_rect(int width, int height)
|
|
|
|
{
|
|
|
|
unsigned char vline[LCD_WIDTH];
|
|
|
|
int x, y;
|
|
|
|
|
|
|
|
for (x = 0; x < width; x++)
|
|
|
|
vline[x] = (x << 8) / width;
|
|
|
|
for (y = 0; y < height; y++)
|
|
|
|
rb->memcpy(greydata[y], vline, width);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void time_greyscale(void)
|
|
|
|
{
|
|
|
|
char str[32]; /* text buffer */
|
|
|
|
long time_start; /* start tickcount */
|
|
|
|
long time_end; /* end tickcount */
|
|
|
|
long time_1, time_2;
|
|
|
|
int frames_1, frames_2;
|
|
|
|
int fps, load;
|
|
|
|
|
|
|
|
gbuf = (unsigned char *) rb->plugin_get_buffer(&gbuf_size);
|
2009-01-16 10:34:40 +00:00
|
|
|
if (!grey_init(gbuf, gbuf_size, GREY_ON_COP,
|
2008-04-06 13:59:31 +00:00
|
|
|
LCD_WIDTH, LCD_HEIGHT, NULL))
|
2008-01-08 00:06:54 +00:00
|
|
|
{
|
|
|
|
log_text("greylib: out of memory.");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
make_grey_rect(LCD_WIDTH, LCD_HEIGHT);
|
|
|
|
|
|
|
|
/* Test 1 - greyscale overlay not yet enabled */
|
|
|
|
frames_1 = 0;
|
|
|
|
rb->sleep(0); /* sync to tick */
|
|
|
|
time_start = *rb->current_tick;
|
|
|
|
while((time_end = *rb->current_tick) - time_start < DURATION)
|
|
|
|
{
|
|
|
|
grey_ub_gray_bitmap(greydata[0], 0, 0, LCD_WIDTH, LCD_HEIGHT);
|
|
|
|
frames_1++;
|
|
|
|
}
|
|
|
|
time_1 = time_end - time_start;
|
|
|
|
|
|
|
|
/* Test 2 - greyscale overlay enabled */
|
|
|
|
grey_show(true);
|
|
|
|
frames_2 = 0;
|
|
|
|
rb->sleep(0); /* sync to tick */
|
|
|
|
time_start = *rb->current_tick;
|
|
|
|
while((time_end = *rb->current_tick) - time_start < DURATION)
|
|
|
|
{
|
|
|
|
grey_ub_gray_bitmap(greydata[0], 0, 0, LCD_WIDTH, LCD_HEIGHT);
|
|
|
|
frames_2++;
|
|
|
|
}
|
|
|
|
time_2 = time_end - time_start;
|
|
|
|
|
|
|
|
grey_release();
|
|
|
|
fps = calc_tenth_fps(frames_2, time_2);
|
2008-01-13 00:11:43 +00:00
|
|
|
load = 100 - (100 * frames_2 * time_1) / (frames_1 * time_2);
|
2008-01-08 00:06:54 +00:00
|
|
|
rb->snprintf(str, sizeof(str), "1/1: %d.%d fps", fps / 10, fps % 10);
|
|
|
|
log_text(str);
|
|
|
|
|
|
|
|
if (load > 0 && load < 100)
|
|
|
|
{
|
|
|
|
rb->snprintf(str, sizeof(str), "CPU load: %d%%", load);
|
|
|
|
log_text(str);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
log_text("CPU load err (boost?)");
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2007-10-13 22:32:35 +00:00
|
|
|
/* plugin entry point */
|
2009-01-16 10:34:40 +00:00
|
|
|
enum plugin_status plugin_start(const void* parameter)
|
2007-10-13 22:32:35 +00:00
|
|
|
{
|
|
|
|
#ifndef SIMULATOR
|
|
|
|
char str[32];
|
|
|
|
int cpu_freq;
|
|
|
|
#endif
|
2006-04-11 19:29:01 +00:00
|
|
|
|
2007-10-13 22:32:35 +00:00
|
|
|
/* standard stuff */
|
2009-01-16 10:34:40 +00:00
|
|
|
PLUGIN_IRAM_INIT(rb)
|
2007-10-13 22:32:35 +00:00
|
|
|
(void)parameter;
|
2006-04-11 19:29:01 +00:00
|
|
|
|
2007-10-13 22:32:35 +00:00
|
|
|
log_init();
|
2007-08-05 20:41:49 +00:00
|
|
|
#ifndef SIMULATOR
|
2007-10-13 22:32:35 +00:00
|
|
|
cpu_freq = *rb->cpu_frequency; /* remember CPU frequency */
|
|
|
|
#endif
|
2009-01-16 10:34:40 +00:00
|
|
|
backlight_force_on(); /* backlight control in lib/helper.c */
|
2006-04-11 19:29:01 +00:00
|
|
|
|
2009-04-11 01:52:53 +00:00
|
|
|
log_text("Main LCD Update");
|
2007-10-13 22:32:35 +00:00
|
|
|
time_main_update();
|
|
|
|
#ifdef HAVE_LCD_COLOR
|
|
|
|
log_text("Main LCD YUV");
|
|
|
|
time_main_yuv();
|
2007-08-05 20:41:49 +00:00
|
|
|
#endif
|
2008-03-25 23:21:36 +00:00
|
|
|
#if LCD_DEPTH < 4
|
2008-01-08 00:06:54 +00:00
|
|
|
log_text("Greyscale library");
|
|
|
|
time_greyscale();
|
|
|
|
#endif
|
2007-10-13 22:32:35 +00:00
|
|
|
#ifdef HAVE_REMOTE_LCD
|
|
|
|
log_text("Remote LCD Update");
|
|
|
|
time_remote_update();
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef SIMULATOR
|
|
|
|
if (*rb->cpu_frequency != cpu_freq)
|
|
|
|
rb->snprintf(str, sizeof(str), "CPU clock changed!");
|
|
|
|
else
|
|
|
|
rb->snprintf(str, sizeof(str), "CPU: %d MHz",
|
|
|
|
(cpu_freq + 500000) / 1000000);
|
|
|
|
log_text(str);
|
2006-04-11 19:29:01 +00:00
|
|
|
#endif
|
2009-01-16 10:34:40 +00:00
|
|
|
backlight_use_settings(); /* backlight control in lib/helper.c */
|
2006-04-08 10:27:34 +00:00
|
|
|
|
|
|
|
/* wait until user closes plugin */
|
|
|
|
while (rb->button_get(true) != FPS_QUIT);
|
|
|
|
|
|
|
|
return PLUGIN_OK;
|
|
|
|
}
|
|
|
|
#endif
|