2006-01-09 11:22:36 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
2006-02-03 15:19:58 +00:00
|
|
|
* Copyright (C) 2006 by Daniel Everton <dan@iocaine.org>
|
2006-01-09 11:22:36 +00:00
|
|
|
*
|
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-01-09 11:22:36 +00:00
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
2010-05-15 21:02:47 +00:00
|
|
|
#include <SDL.h>
|
2010-05-17 21:51:46 +00:00
|
|
|
#include <SDL_thread.h>
|
2006-02-03 15:19:58 +00:00
|
|
|
#include <stdlib.h>
|
2006-02-09 11:17:52 +00:00
|
|
|
#include <string.h>
|
2010-05-17 21:43:06 +00:00
|
|
|
#include <inttypes.h>
|
2010-05-17 22:03:51 +00:00
|
|
|
#include "system.h"
|
2010-05-15 21:02:47 +00:00
|
|
|
#include "thread-sdl.h"
|
2010-07-10 02:46:08 +00:00
|
|
|
#include "system-sdl.h"
|
2010-05-15 21:02:47 +00:00
|
|
|
#include "sim-ui-defines.h"
|
2006-02-09 21:49:28 +00:00
|
|
|
#include "lcd-sdl.h"
|
|
|
|
#ifdef HAVE_LCD_BITMAP
|
|
|
|
#include "lcd-bitmap.h"
|
2007-02-20 15:12:56 +00:00
|
|
|
#elif defined(HAVE_LCD_CHARCELLS)
|
2007-03-31 09:58:49 +00:00
|
|
|
#include "lcd-charcells.h"
|
2006-02-09 21:49:28 +00:00
|
|
|
#endif
|
|
|
|
#ifdef HAVE_REMOTE_LCD
|
2006-07-28 07:35:45 +00:00
|
|
|
#include "lcd-remote-bitmap.h"
|
2006-02-09 21:49:28 +00:00
|
|
|
#endif
|
2010-05-15 21:02:47 +00:00
|
|
|
#include "panic.h"
|
|
|
|
#include "debug.h"
|
2010-02-16 17:34:48 +00:00
|
|
|
|
2011-02-08 20:05:25 +00:00
|
|
|
#if (CONFIG_PLATFORM & PLATFORM_MAEMO)
|
|
|
|
#include <glib.h>
|
|
|
|
#include <glib-object.h>
|
|
|
|
#include "maemo-thread.h"
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2010-05-15 21:02:47 +00:00
|
|
|
SDL_Surface *gui_surface;
|
2006-02-03 15:19:58 +00:00
|
|
|
|
2010-05-15 21:02:47 +00:00
|
|
|
bool background = true; /* use backgrounds by default */
|
2009-10-26 09:58:39 +00:00
|
|
|
#ifdef HAVE_REMOTE_LCD
|
2010-05-15 21:02:47 +00:00
|
|
|
bool showremote = true; /* include remote by default */
|
2009-10-26 09:58:39 +00:00
|
|
|
#endif
|
2010-05-15 21:02:47 +00:00
|
|
|
bool mapping = false;
|
|
|
|
bool debug_buttons = false;
|
2006-02-03 15:19:58 +00:00
|
|
|
|
2010-05-15 21:02:47 +00:00
|
|
|
bool lcd_display_redraw = true; /* Used for player simulator */
|
|
|
|
char having_new_lcd = true; /* Used for player simulator */
|
|
|
|
bool sim_alarm_wakeup = false;
|
|
|
|
const char *sim_root_dir = NULL;
|
|
|
|
extern int display_zoom;
|
2006-02-21 21:48:06 +00:00
|
|
|
|
2010-05-27 18:46:09 +00:00
|
|
|
static SDL_Thread *evt_thread = NULL;
|
|
|
|
|
2010-05-15 21:02:47 +00:00
|
|
|
#ifdef DEBUG
|
2006-02-21 21:48:06 +00:00
|
|
|
bool debug_audio = false;
|
2010-05-15 21:02:47 +00:00
|
|
|
#endif
|
2006-01-09 11:22:36 +00:00
|
|
|
|
2007-04-24 23:58:57 +00:00
|
|
|
bool debug_wps = false;
|
2007-07-22 17:17:53 +00:00
|
|
|
int wps_verbose_level = 3;
|
2007-04-24 23:58:57 +00:00
|
|
|
|
2010-05-17 17:19:31 +00:00
|
|
|
/*
|
|
|
|
* This thread will read the buttons in an interrupt like fashion, and
|
|
|
|
* also initializes SDL_INIT_VIDEO and the surfaces
|
|
|
|
*
|
|
|
|
* it must be done in the same thread (at least on windows) because events only
|
|
|
|
* work in the thread which called SDL_Init(SubSystem) with SDL_INIT_VIDEO
|
|
|
|
*
|
|
|
|
* This is an SDL thread and relies on preemptive behavoir of the host
|
|
|
|
**/
|
|
|
|
static int sdl_event_thread(void * param)
|
2006-01-09 11:22:36 +00:00
|
|
|
{
|
2010-05-17 17:19:31 +00:00
|
|
|
SDL_InitSubSystem(SDL_INIT_VIDEO);
|
|
|
|
|
2011-02-08 20:05:25 +00:00
|
|
|
#if (CONFIG_PLATFORM & PLATFORM_MAEMO)
|
|
|
|
SDL_sem *wait_for_maemo_startup;
|
|
|
|
#endif
|
2010-07-10 02:46:08 +00:00
|
|
|
SDL_Surface *picture_surface = NULL;
|
2006-02-09 11:17:52 +00:00
|
|
|
int width, height;
|
2010-12-27 22:08:34 +00:00
|
|
|
int depth;
|
2011-02-08 20:05:25 +00:00
|
|
|
Uint32 flags;
|
2006-01-09 11:22:36 +00:00
|
|
|
|
2006-02-09 11:17:52 +00:00
|
|
|
/* Try and load the background image. If it fails go without */
|
|
|
|
if (background) {
|
|
|
|
picture_surface = SDL_LoadBMP("UI256.bmp");
|
|
|
|
if (picture_surface == NULL) {
|
|
|
|
background = false;
|
2010-05-15 21:02:47 +00:00
|
|
|
DEBUGF("warn: %s\n", SDL_GetError());
|
2006-02-09 11:17:52 +00:00
|
|
|
}
|
|
|
|
}
|
2010-05-15 21:02:47 +00:00
|
|
|
|
2006-02-09 11:17:52 +00:00
|
|
|
/* Set things up */
|
2009-10-26 09:58:39 +00:00
|
|
|
if (background)
|
|
|
|
{
|
2006-02-09 11:17:52 +00:00
|
|
|
width = UI_WIDTH;
|
|
|
|
height = UI_HEIGHT;
|
2009-10-26 09:58:39 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2006-02-09 11:17:52 +00:00
|
|
|
#ifdef HAVE_REMOTE_LCD
|
2009-10-26 09:58:39 +00:00
|
|
|
if (showremote)
|
|
|
|
{
|
|
|
|
width = SIM_LCD_WIDTH > SIM_REMOTE_WIDTH ? SIM_LCD_WIDTH : SIM_REMOTE_WIDTH;
|
|
|
|
height = SIM_LCD_HEIGHT + SIM_REMOTE_HEIGHT;
|
|
|
|
}
|
|
|
|
else
|
2006-02-09 11:17:52 +00:00
|
|
|
#endif
|
2009-10-26 09:58:39 +00:00
|
|
|
{
|
|
|
|
width = SIM_LCD_WIDTH;
|
|
|
|
height = SIM_LCD_HEIGHT;
|
|
|
|
}
|
2006-02-09 11:17:52 +00:00
|
|
|
}
|
2010-12-27 22:08:34 +00:00
|
|
|
|
|
|
|
depth = LCD_DEPTH;
|
|
|
|
if (depth < 8)
|
|
|
|
depth = 16;
|
|
|
|
|
2011-02-08 20:05:25 +00:00
|
|
|
flags = SDL_HWSURFACE|SDL_DOUBLEBUF;
|
2011-02-27 23:42:37 +00:00
|
|
|
#if (CONFIG_PLATFORM & (PLATFORM_MAEMO|PLATFORM_PANDORA))
|
2011-02-08 20:05:25 +00:00
|
|
|
/* Fullscreen mode for maemo app */
|
|
|
|
flags |= SDL_FULLSCREEN;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
if ((gui_surface = SDL_SetVideoMode(width * display_zoom, height * display_zoom, depth, flags)) == NULL) {
|
2010-05-15 21:02:47 +00:00
|
|
|
panicf("%s", SDL_GetError());
|
2006-02-03 15:19:58 +00:00
|
|
|
}
|
2006-01-09 11:22:36 +00:00
|
|
|
|
2011-02-28 10:55:02 +00:00
|
|
|
#if (CONFIG_PLATFORM & (PLATFORM_MAEMO|PLATFORM_PANDORA))
|
2011-05-25 20:11:03 +00:00
|
|
|
/* SDL touch screen fix: Work around a SDL assumption that returns
|
|
|
|
relative mouse coordinates when you get to the screen edges
|
|
|
|
using the touchscreen and a disabled mouse cursor.
|
|
|
|
*/
|
|
|
|
uint8_t hiddenCursorData = 0;
|
|
|
|
SDL_Cursor *hiddenCursor = SDL_CreateCursor(&hiddenCursorData, &hiddenCursorData, 8, 1, 0, 0);
|
|
|
|
|
|
|
|
SDL_ShowCursor(SDL_ENABLE);
|
|
|
|
SDL_SetCursor(hiddenCursor);
|
2011-02-08 20:05:25 +00:00
|
|
|
#endif
|
|
|
|
|
2006-02-03 15:19:58 +00:00
|
|
|
SDL_WM_SetCaption(UI_TITLE, NULL);
|
2006-01-09 11:22:36 +00:00
|
|
|
|
2010-05-17 17:19:31 +00:00
|
|
|
if (background && picture_surface != NULL)
|
2006-02-03 15:19:58 +00:00
|
|
|
SDL_BlitSurface(picture_surface, NULL, gui_surface, NULL);
|
2010-05-17 17:19:31 +00:00
|
|
|
|
2010-05-26 21:11:40 +00:00
|
|
|
/* let system_init proceed */
|
|
|
|
SDL_SemPost((SDL_sem *)param);
|
|
|
|
|
2011-02-08 20:05:25 +00:00
|
|
|
#if (CONFIG_PLATFORM & PLATFORM_MAEMO)
|
|
|
|
/* Start maemo thread: Listen to display on/off events and battery monitoring */
|
|
|
|
wait_for_maemo_startup = SDL_CreateSemaphore(0); /* 0-count so it blocks */
|
|
|
|
SDL_Thread *maemo_thread = SDL_CreateThread(maemo_thread_func, wait_for_maemo_startup);
|
|
|
|
#endif
|
|
|
|
|
2010-05-17 17:19:31 +00:00
|
|
|
/*
|
|
|
|
* finally enter the button loop */
|
2010-07-10 02:46:08 +00:00
|
|
|
gui_message_loop();
|
|
|
|
|
2011-02-08 20:05:25 +00:00
|
|
|
#if (CONFIG_PLATFORM & PLATFORM_MAEMO)
|
|
|
|
/* Ensure maemo thread is up and running */
|
|
|
|
SDL_SemWait(wait_for_maemo_startup);
|
|
|
|
SDL_DestroySemaphore(wait_for_maemo_startup);
|
|
|
|
|
|
|
|
#if (CONFIG_PLATFORM & PLATFORM_MAEMO5)
|
|
|
|
pcm_shutdown_gstreamer();
|
|
|
|
#endif
|
|
|
|
|
|
|
|
g_main_loop_quit (maemo_main_loop);
|
|
|
|
g_main_loop_unref(maemo_main_loop);
|
|
|
|
SDL_WaitThread(maemo_thread, NULL);
|
|
|
|
#endif
|
|
|
|
|
2011-05-25 20:11:03 +00:00
|
|
|
#if (CONFIG_PLATFORM & (PLATFORM_MAEMO|PLATFORM_PANDORA))
|
|
|
|
SDL_FreeCursor(hiddenCursor);
|
|
|
|
#endif
|
|
|
|
|
2010-07-10 02:46:08 +00:00
|
|
|
if(picture_surface)
|
|
|
|
SDL_FreeSurface(picture_surface);
|
2010-05-27 18:46:09 +00:00
|
|
|
|
|
|
|
/* Order here is relevent to prevent deadlocks and use of destroyed
|
|
|
|
sync primitives by kernel threads */
|
2011-02-18 22:46:01 +00:00
|
|
|
#ifdef HAVE_SDL_THREADS
|
|
|
|
sim_thread_shutdown(); /* not needed for native threads */
|
|
|
|
#endif
|
2010-05-17 17:19:31 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2011-02-28 03:24:48 +00:00
|
|
|
void shutdown_hw(void)
|
2010-05-27 18:46:09 +00:00
|
|
|
{
|
2011-02-28 03:24:48 +00:00
|
|
|
/* Shut down SDL event loop */
|
|
|
|
SDL_Event event;
|
|
|
|
memset(&event, 0, sizeof(SDL_Event));
|
|
|
|
event.type = SDL_USEREVENT;
|
|
|
|
SDL_PushEvent(&event);
|
|
|
|
#ifdef HAVE_SDL_THREADS
|
|
|
|
/* since sim_thread_shutdown() grabs the mutex we need to let it free,
|
|
|
|
* otherwise SDL_WaitThread will deadlock */
|
|
|
|
struct thread_entry* t = sim_thread_unlock();
|
|
|
|
#endif
|
2010-05-27 18:46:09 +00:00
|
|
|
/* wait for event thread to finish */
|
|
|
|
SDL_WaitThread(evt_thread, NULL);
|
|
|
|
|
2011-02-28 03:24:48 +00:00
|
|
|
#ifdef HAVE_SDL_THREADS
|
|
|
|
/* lock again before entering the scheduler */
|
|
|
|
sim_thread_lock(t);
|
|
|
|
/* sim_thread_shutdown() will cause sim_do_exit() to be called via longjmp,
|
|
|
|
* but only if we let the sdl thread scheduler exit the other threads */
|
|
|
|
while(1) yield();
|
|
|
|
#else
|
|
|
|
sim_do_exit();
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
void sim_do_exit()
|
|
|
|
{
|
|
|
|
sim_kernel_shutdown();
|
|
|
|
|
2010-05-27 18:46:09 +00:00
|
|
|
SDL_Quit();
|
|
|
|
exit(EXIT_SUCCESS);
|
|
|
|
}
|
2010-05-17 17:19:31 +00:00
|
|
|
|
2011-02-18 22:46:01 +00:00
|
|
|
uintptr_t *stackbegin;
|
|
|
|
uintptr_t *stackend;
|
2010-05-17 17:19:31 +00:00
|
|
|
void system_init(void)
|
|
|
|
{
|
2010-05-26 21:11:40 +00:00
|
|
|
SDL_sem *s;
|
2011-02-18 22:46:01 +00:00
|
|
|
/* fake stack, OS manages size (and growth) */
|
|
|
|
stackbegin = stackend = (uintptr_t*)&s;
|
2010-05-26 21:11:40 +00:00
|
|
|
|
2011-02-08 20:05:25 +00:00
|
|
|
#if (CONFIG_PLATFORM & PLATFORM_MAEMO)
|
|
|
|
/* Make glib thread safe */
|
|
|
|
g_thread_init(NULL);
|
|
|
|
g_type_init();
|
|
|
|
#endif
|
|
|
|
|
2010-05-17 17:19:31 +00:00
|
|
|
if (SDL_Init(SDL_INIT_TIMER))
|
|
|
|
panicf("%s", SDL_GetError());
|
|
|
|
|
2010-05-26 21:11:40 +00:00
|
|
|
s = SDL_CreateSemaphore(0); /* 0-count so it blocks */
|
2010-05-17 17:19:31 +00:00
|
|
|
|
2010-05-27 18:46:09 +00:00
|
|
|
evt_thread = SDL_CreateThread(sdl_event_thread, s);
|
2010-05-17 17:19:31 +00:00
|
|
|
|
2010-05-26 21:11:40 +00:00
|
|
|
/* wait for sdl_event_thread to run so that it can initialize the surfaces
|
|
|
|
* and video subsystem needed for SDL events */
|
|
|
|
SDL_SemWait(s);
|
2010-05-17 17:19:31 +00:00
|
|
|
/* cleanup */
|
2010-05-26 21:11:40 +00:00
|
|
|
SDL_DestroySemaphore(s);
|
2006-01-09 11:22:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2010-05-15 21:02:47 +00:00
|
|
|
void system_reboot(void)
|
|
|
|
{
|
2011-02-18 22:46:01 +00:00
|
|
|
#ifdef HAVE_SDL_THREADS
|
2010-05-15 21:02:47 +00:00
|
|
|
sim_thread_exception_wait();
|
2011-02-18 22:46:01 +00:00
|
|
|
#else
|
|
|
|
sim_do_exit();
|
|
|
|
#endif
|
2010-05-15 21:02:47 +00:00
|
|
|
}
|
2006-10-22 12:41:13 +00:00
|
|
|
|
2011-02-18 22:46:01 +00:00
|
|
|
void system_exception_wait(void)
|
|
|
|
{
|
|
|
|
system_reboot();
|
|
|
|
}
|
2010-05-17 17:19:31 +00:00
|
|
|
|
2010-05-15 21:02:47 +00:00
|
|
|
void sys_handle_argv(int argc, char *argv[])
|
2006-01-09 11:22:36 +00:00
|
|
|
{
|
2007-11-08 10:15:44 +00:00
|
|
|
if (argc >= 1)
|
|
|
|
{
|
2006-02-09 11:17:52 +00:00
|
|
|
int x;
|
2007-11-08 10:15:44 +00:00
|
|
|
for (x = 1; x < argc; x++)
|
|
|
|
{
|
2010-05-15 21:02:47 +00:00
|
|
|
#ifdef DEBUG
|
2007-11-08 10:15:44 +00:00
|
|
|
if (!strcmp("--debugaudio", argv[x]))
|
|
|
|
{
|
2006-02-21 21:48:06 +00:00
|
|
|
debug_audio = true;
|
|
|
|
printf("Writing debug audio file.\n");
|
2010-05-15 21:02:47 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
#endif
|
|
|
|
if (!strcmp("--debugwps", argv[x]))
|
2007-11-08 10:15:44 +00:00
|
|
|
{
|
2007-04-24 23:58:57 +00:00
|
|
|
debug_wps = true;
|
|
|
|
printf("WPS debug mode enabled.\n");
|
2007-11-08 10:15:44 +00:00
|
|
|
}
|
2009-01-08 20:04:17 +00:00
|
|
|
else if (!strcmp("--nobackground", argv[x]))
|
2007-11-08 10:15:44 +00:00
|
|
|
{
|
2009-01-08 20:04:17 +00:00
|
|
|
background = false;
|
|
|
|
printf("Disabling background image.\n");
|
2007-11-08 10:15:44 +00:00
|
|
|
}
|
2009-10-26 09:58:39 +00:00
|
|
|
#ifdef HAVE_REMOTE_LCD
|
|
|
|
else if (!strcmp("--noremote", argv[x]))
|
|
|
|
{
|
|
|
|
showremote = false;
|
|
|
|
background = false;
|
|
|
|
printf("Disabling remote image.\n");
|
|
|
|
}
|
|
|
|
#endif
|
2007-11-08 10:15:44 +00:00
|
|
|
else if (!strcmp("--old_lcd", argv[x]))
|
|
|
|
{
|
2006-02-09 11:17:52 +00:00
|
|
|
having_new_lcd = false;
|
|
|
|
printf("Using old LCD layout.\n");
|
2007-11-08 10:15:44 +00:00
|
|
|
}
|
|
|
|
else if (!strcmp("--zoom", argv[x]))
|
|
|
|
{
|
2006-02-09 21:49:28 +00:00
|
|
|
x++;
|
2006-02-21 21:56:38 +00:00
|
|
|
if(x < argc)
|
|
|
|
display_zoom=atoi(argv[x]);
|
|
|
|
else
|
|
|
|
display_zoom = 2;
|
2006-02-09 21:49:28 +00:00
|
|
|
printf("Window zoom is %d\n", display_zoom);
|
2007-11-08 10:15:44 +00:00
|
|
|
}
|
|
|
|
else if (!strcmp("--alarm", argv[x]))
|
|
|
|
{
|
2007-10-13 12:07:59 +00:00
|
|
|
sim_alarm_wakeup = true;
|
|
|
|
printf("Simulating alarm wakeup.\n");
|
2007-11-08 10:15:44 +00:00
|
|
|
}
|
|
|
|
else if (!strcmp("--root", argv[x]))
|
|
|
|
{
|
|
|
|
x++;
|
|
|
|
if (x < argc)
|
|
|
|
{
|
|
|
|
sim_root_dir = argv[x];
|
|
|
|
printf("Root directory: %s\n", sim_root_dir);
|
|
|
|
}
|
|
|
|
}
|
2010-02-16 17:34:48 +00:00
|
|
|
else if (!strcmp("--mapping", argv[x]))
|
|
|
|
{
|
|
|
|
mapping = true;
|
|
|
|
printf("Printing click coords with drag radii.\n");
|
|
|
|
}
|
|
|
|
else if (!strcmp("--debugbuttons", argv[x]))
|
|
|
|
{
|
|
|
|
debug_buttons = true;
|
|
|
|
printf("Printing background button clicks.\n");
|
|
|
|
}
|
2007-11-08 10:15:44 +00:00
|
|
|
else
|
|
|
|
{
|
2006-02-09 11:17:52 +00:00
|
|
|
printf("rockboxui\n");
|
|
|
|
printf("Arguments:\n");
|
2010-05-15 21:02:47 +00:00
|
|
|
#ifdef DEBUG
|
2006-02-21 21:48:06 +00:00
|
|
|
printf(" --debugaudio \t Write raw PCM data to audiodebug.raw\n");
|
2010-05-15 21:02:47 +00:00
|
|
|
#endif
|
2007-04-24 23:58:57 +00:00
|
|
|
printf(" --debugwps \t Print advanced WPS debug info\n");
|
2009-01-08 20:04:17 +00:00
|
|
|
printf(" --nobackground \t Disable the background image\n");
|
2009-10-26 09:58:39 +00:00
|
|
|
#ifdef HAVE_REMOTE_LCD
|
|
|
|
printf(" --noremote \t Disable the remote image (will disable backgrounds)\n");
|
|
|
|
#endif
|
2006-02-09 11:17:52 +00:00
|
|
|
printf(" --old_lcd \t [Player] simulate old playermodel (ROM version<4.51)\n");
|
2007-11-08 10:15:44 +00:00
|
|
|
printf(" --zoom [VAL]\t Window zoom (will disable backgrounds)\n");
|
|
|
|
printf(" --alarm \t Simulate a wake-up on alarm\n");
|
|
|
|
printf(" --root [DIR]\t Set root directory\n");
|
2010-02-16 17:34:48 +00:00
|
|
|
printf(" --mapping \t Output coordinates and radius for mapping backgrounds\n");
|
2006-02-09 11:17:52 +00:00
|
|
|
exit(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2006-02-09 21:49:28 +00:00
|
|
|
if (display_zoom > 1) {
|
|
|
|
background = false;
|
|
|
|
}
|
2006-01-09 11:22:36 +00:00
|
|
|
}
|