Maarten ter Huurne
a014a331f4
Put platform specific defaults in systemwide gmenu2x.conf.
...
It is simpler to maintain them there instead of in the code.
2011-09-19 01:12:34 +02:00
Maarten ter Huurne
19064b4c4a
Work around lack of vsynced page flipping in OpenDingux kernel.
2011-09-18 21:16:12 +02:00
Maarten ter Huurne
41650aaad7
Use 16 bpp by default on the Dingoo.
...
Other platforms keep using 32 bpp.
2011-09-18 18:42:53 +02:00
Maarten ter Huurne
d354eb85a4
Improved CPU frequency control.
...
The maximum frequency for applications was set to 430 MHz before,
while some Dingoos can handle higher frequencies. Now the limit is set to
the theoretical maximum frequency of 500 MHz.
For the menu itself the maximum frequency is set to a safer 408 MHz,
to avoid over-eager users from putting their system in an unusable state
that is difficult to recover from.
Also the frequency settings are now done in 24 MHz increments, to match
the limitations of the current JZ4740 kernel. Note that only new entries
are rounded to 24 MHz multiples, existing entries stay as they are.
2011-09-18 18:27:03 +02:00
Ayla
3995133fa5
When deleting a link, check if the icon is used elsewhere before unloading it.
2011-09-18 13:22:02 +02:00
Ayla
cf8bd84362
Added debug message which is displayed when surfaces are deleted from memory.
2011-09-18 13:21:03 +02:00
Ayla
cca367745b
Dingux port: The SD card root is now hardcoded to /boot for the getDiskFree() function only.
...
That function was not working as CARD_ROOT does not necessarily point to the mount point of a filesystem.
2011-09-18 12:42:08 +02:00
Ayla
759eefd676
The files "a.png" and "b.png" have been renamed to "cancel.png" and "accept.png".
2011-09-18 03:40:33 +02:00
Ayla
16b050be05
Modified the key shortcuts for the small popups (deleting a link...).
2011-09-18 03:33:10 +02:00
Ayla
826d622285
Modified the key shortcuts for the generic file/dir selector class.
2011-09-18 03:23:47 +02:00
Ayla
38cfd321f6
Modified the key shortcuts for the wallpaper dialog.
2011-09-18 03:16:08 +02:00
Ayla
d0cfe7c60d
Modified the key shortcuts for the text display dialog.
2011-09-18 03:05:25 +02:00
Ayla
5dd6d31b25
Modified the key shortcuts of the file input dialog.
2011-09-18 02:21:04 +02:00
Ayla
b5131c1db9
Modified the key shortcuts of the text input dialog, so that the X and Y keys are not used.
2011-09-18 02:05:15 +02:00
Ayla
87106cdf56
Modified the button icons displayed when modifying an integer parameter.
2011-09-18 01:47:29 +02:00
Ayla
1aac93f36d
The (gp2x) A button is now used instead of X to clear string inputs (like link names).
2011-09-18 01:40:23 +02:00
Ayla
c9a51af4a6
The WallpaperDialog object now uses a ButtonBox to print the key mapping at the bottom of the screen.
2011-09-18 01:34:19 +02:00
Ayla
d82e262662
Rewrite of the MenuSettingRGBA class so that it won't use the CLEAR/MENU buttons.
2011-09-18 01:33:11 +02:00
Ayla
7f2c7db8e2
Rewrite of how the events are handled by the menusetting* objects.
2011-09-15 20:20:35 +02:00
Ayla
fdee206d93
The ButtonBox now features a clear() function which empties the list of buttons.
2011-09-15 20:12:02 +02:00
Ayla
6ac012348d
Disactivate the binding of the app's manual on the 'Y' button.
2011-09-15 11:33:46 +02:00
Ayla
5f69930d07
The contextual menu now features a "show manual" entry.
2011-09-15 11:18:07 +02:00
Ayla
03a26a859b
Dingoo port: The help menu now displays help for dingoo's controls.
2011-09-04 03:02:17 +02:00
Ayla
9768a74d07
The conf file does not need to be saved on exit.
2011-09-04 02:37:10 +02:00
Xiangfu Liu
46d680990a
gmenu2x wallpaper only support .png
2011-08-22 15:13:44 +08:00
Ayla
8c1f4abb5b
The input manager should check whether a powersaver instance is running, to not create one when it's not needed.
2011-08-17 00:46:43 +02:00
Ayla
fca8c8e8a1
Create the powersaver instance on demand and destroy it when not needed.
2011-08-17 00:46:11 +02:00
Ayla
f31828667f
Added a boolean function to know if the powersaver is running.
2011-08-17 00:44:45 +02:00
Ayla
bffef7cfea
GMenu2X does not need to init the audio subsystem of SDL.
2011-08-16 02:18:09 +02:00
Ayla
e282f8a55d
Enable the SDL timer subsystem only if the backlight timeout is enabled.
2011-08-16 02:17:21 +02:00
Ayla
4fd4b234dc
Set card root to /media by default for the Dingux port.
2011-08-11 03:42:18 +02:00
Ayla
3d3e0fa566
Read config file(s) present on both system and user-specific directories.
2011-08-11 03:40:36 +02:00
Ayla
7f08e854ea
Shorted a too long caption on the contextual menu. (2)
2011-08-08 23:34:43 +02:00
Ayla
5b49bf0afb
Shorted a too long caption on the contextual menu.
2011-08-08 17:40:27 +02:00
Ayla
5f77e3baf7
Cleaned GP2X-specific code that was built on all platforms.
...
There was a lot of gp2x-specific code which was built for
all platform. For instance, the code was compiled for all
the platforms with the constant "TARGET_GP2X" defined.
This obviously had to be fixed.
2011-07-29 01:13:35 +02:00
Ayla
f6c456f35b
GMenu2X now won't clear the framebuffer on exit.
...
Instead, the loading screen image will remain even when GMenu2X is not running anymore.
This require a patched SDL; the patch can be found at
https://github.com/mthuurne/opendingux-buildroot/blob/opendingux-2010.11/package/sdl/sdl-fbcon-clear-onexit.patch
2011-07-28 01:48:12 +02:00
Ayla
4636a84eef
Create the "sections" user directory if required, when creating a new link.
...
It previously assumed that this directory was present, which isn't
the case all the time.
2011-07-25 12:05:24 +02:00
Ayla
81a607c36e
Fixed a good number of memory leaks.
...
The objects created with "new" were destroyed with "free()",
instead of "delete"; as a result, the destructors were never called.
2011-07-20 13:43:25 +02:00
Ayla
3a85cabf37
The SurfaceCollection won't load the files selection.png, bottombar.png or topbar.png from the Default skin if they are missing in the current skin.
2011-07-11 18:16:38 +02:00
Ayla
11e58c8ca5
Revert "GMenu2X now won't load skin files from the Default skin when using another skin."
...
This reverts commit 439d25c292 .
Refusing to load files of the Default skin for a different one is a bad idea; it requires
that skin to provide every single PNG file needed by gmenu2x.
2011-07-11 18:14:27 +02:00
Ayla
00d8a04e00
Removed a bug where the Default skin was chosen even if another (working) skin was defined on the config file.
2011-07-11 12:39:31 +02:00
Ayla
0993a48eca
Add a function which unlocks the virtual terminal before and after each execution of a binary.
...
It ensures that GMenu2X can restart after a SDL program segfaulted or crashed.
It also allow GMenu2X to exit without clearing the screen, so that the "loading" screen appears
until the launched binary starts using the framebuffer.
2011-07-11 11:27:38 +02:00
Ayla
55dad4171d
Merge branch 'install_locations'
...
Conflicts:
configure.in
2011-07-11 11:19:18 +02:00
Ayla
f7817b19ab
The links will now be loaded from both the system and the user-specific directories.
2011-07-11 02:49:44 +02:00
Ayla
439d25c292
GMenu2X now won't load skin files from the Default skin when using another skin.
...
This was causing trouble when the current skin does not provide graphical files on purpose (ie. skin with no top/bottom bar).
2011-07-09 01:49:09 +02:00
Sergey Kukunin
28fe39ce54
Fix segmentation fault when try show Manual on Explorer or other service apps
2011-06-11 02:41:52 +03:00
kyak
6646525731
Zero-pad hex values when saving config
...
writeSkinConfig() had a very naughty bug when RGBA values were written
to config file unpadded. This lead to a problem that, for example,
0x00000080 was written as 0x00080 in config file (Somehow gmenu2x
reads and re-saves config on selection). This, in turn, led
to problem when reading skin config file in strtorgba function,
because it parses the color string in token of two symbols
(substr(0,2) and etc).
2011-06-06 11:38:26 +04:00
Maarten ter Huurne
7aeb7a4f0a
PNG: Use libpng directly instead of via SDL_image.
...
This eliminates the build-time dependency on SDL_image and the run-time
dependencies on all libraries used by SDL_image except SDL and libpng.
In addition we now let libpng convert to ARGB format while decoding the
image, rather than letting SDL convert the surface afterwards.
2011-06-05 05:58:47 +02:00
Maarten ter Huurne
2394a075d7
Surface: Work around bug in SDL that loses per-surface alpha.
...
A bug in SDL_ConvertSurface() leaves the per-surface alpha undefined when
converting from RGBA to RGBA. This can cause problems if the surface is
later converted to a format without an alpha channel, such as the display
format.
2011-06-05 05:27:28 +02:00
Maarten ter Huurne
36260e999d
PNG: Only add alpha channel on surface if loaded image has an alpha channel.
...
This fixes a bug where a loaded image could have an alpha of 0.
Also it avoids expensive alpha blending where it is unnecessary.
2011-06-03 12:47:49 +02:00