Maarten ter Huurne
44ca4e3460
SurfaceCollection: Removed alpha flag.
...
In the existing code the alpha flag is always true, so there is no point
in passing it around.
2011-06-02 05:52:47 +02:00
Maarten ter Huurne
af3ed78496
Merge branch 'master' of projects.qi-hardware.com:gmenu2x
2011-06-02 05:46:25 +02:00
Sergey Kukunin
240286df11
Add powersaver class
2011-06-02 06:32:39 +03:00
Maarten ter Huurne
52c89d6005
Surface: Removed duplicate constructor.
...
There were two constructors that took an image path, skin name and alpha flag
as their arguments, but in different orders. We need only one of them.
2011-06-02 04:57:21 +02:00
Maarten ter Huurne
b2896d6bac
ASFont: Refactored string drawing methods.
...
Renamed methods that draw a single line from write() to writeLine().
There is now only one write() method left: the public method.
Pass surface to draw on as wrapped Surface instead of SDL_Surface.
At the end of the call chain we still use SDL directly though.
2011-06-02 04:29:19 +02:00
Maarten ter Huurne
b6a5d89bc8
Surface: Removed unused code and restricted access.
...
Removed all methods that are never called.
Made methods that are only called by Surface itself private.
One ugly thing remaining is outside access to the "raw" field.
2011-06-02 03:39:34 +02:00
Xiangfu Liu
b068aa04d4
nanonote: using color font
2011-05-31 09:01:16 +08:00
Xiangfu Liu
6087e23d4d
nanonote: fix setfont path
2011-05-30 09:53:59 +08:00
Xiangfu Liu
e0831be4a3
add color ash shell, add the method to gmenu2x.sh as comment
2011-05-27 21:41:35 +08:00
Maarten ter Huurne
a382a425a9
ASFont: access font pixels efficiently.
...
Previous commit ensures that the font surface is always 32 bpp.
Therefore we can read font pixels directly through a pointer.
2011-05-12 02:10:40 +02:00
Maarten ter Huurne
41e6e4693e
ASFont: only convert font surface if it is not already in a 32bpp format.
2011-05-12 01:20:26 +02:00
Maarten ter Huurne
db5ebff16f
Fixed debug print.
...
GCC 4.5.1 has stricter checking of format strings and refused to compile this.
2011-05-11 02:31:41 +02:00
Maarten ter Huurne
8592038f95
Merge branch 'master' of projects.qi-hardware.com:gmenu2x
2011-05-11 01:37:57 +02:00
Maarten ter Huurne
bff04d2418
ASFont: removed duplication of horizontal alignment code.
2011-05-10 02:43:15 +02:00
Maarten ter Huurne
b4f3cde526
ASFont: merged SFontPlus class into ASFont class.
2011-05-10 02:37:10 +02:00
Maarten ter Huurne
1bc55392cd
ASFont: cleanups in text write methods.
2011-05-10 02:23:13 +02:00
Maarten ter Huurne
ff546cdcb0
ASFont: have a single routine for computing text width that also handles newlines.
...
This way the text has to be scanned only once and no copying is needed.
2011-05-10 02:08:14 +02:00
Maarten ter Huurne
e4b71138b9
ASFont: removed precalculation of half heights.
...
There is no point in precalculating something so cheap to recalculate.
Also, the majority of uses was to compensate for passing the wrong alignment argument.
2011-05-10 00:31:45 +02:00
Maarten ter Huurne
492a36b9df
ASFont: simplified object initialization and cleanup.
...
Do initialization and cleanup in constructor and destructor respectively.
Removed constructors that are not used by gmenu2x.
2011-05-09 14:54:11 +02:00
Maarten ter Huurne
ec5d426d83
ASFont: moved SFontPlus code into ASFont source files.
...
This is in preparation of merging the classes.
2011-05-09 14:25:16 +02:00
Maarten ter Huurne
a35a7e2c35
Introduced enums for text alignment in the ASFont class.
2011-05-09 05:17:25 +02:00
Maarten ter Huurne
c54dec90f5
Minor cleanups in SFontPlus and ASFont.
...
Removed unused includes.
Avoid importing classes into default namespace in headers.
Don't use a type alias if it does not add value.
2011-05-09 04:29:59 +02:00
Maarten ter Huurne
e6be835038
Isolate all PNG loading in a separate source/header.
...
This is in preparation of replacing SDL_image with direct use of libpng.
2011-05-09 03:56:57 +02:00
Ayla
38a83dd385
On the skin menu, the ALTLEFT/ALTRIGHT buttons will now respectively decrease/increase the ARGB values by 10.
2011-04-14 19:35:50 +02:00
Maarten ter Huurne
c22cc4d663
Cleaned up link flags.
...
Use the flags found by "configure" and nothing more.
The hardcoded "-lpng12" broke linking with libpng 1.4.
2011-04-13 03:40:36 +02:00
Maarten ter Huurne
f9db1fbd53
Merge remote branch 'origin/master'
2011-04-13 03:14:45 +02:00
Maarten ter Huurne
34a3d55d10
Added missing #include.
...
Fixes compile error when compiling with GCC 4.5.1.
2011-04-13 03:14:10 +02:00
Ayla
ba9fef5c42
The locale configuration will now be saved.
2011-04-12 13:24:35 +02:00
Ayla
ec000e0214
Changed an error message, that was displaying "Error:" twice. Plus, it now more meaningful.
2011-03-30 15:44:32 +02:00
kyak
bbda0d9cf8
add tclsh icon
2011-02-23 12:38:14 +03:00
kyak
8cc1b02e8f
add icon for qstardict
2011-02-23 12:21:38 +03:00
Xiangfu Liu
ffa28acf78
new icon: qstardict
2011-02-23 10:40:49 +08:00
Xiangfu Liu
f5820b6c6d
mv pyclock to applications section
2011-02-23 09:53:48 +08:00
Xiangfu Liu
0807b1b70d
byobu, fix touch path
2011-02-23 09:53:48 +08:00
kyak
b218991cb9
freedroid: add icon
2011-02-22 20:35:35 +03:00
Xiangfu Liu
3ab2a4f6cf
touch utmp for byobu, add -b ~/ ~/ to mc params
2011-02-22 12:14:39 +08:00
David Kühling
5300921fab
gmenu2x: make console the foreground console before launching applications
...
Emacs didn't like how it was launched before
2011-02-21 23:54:07 +01:00
Xiangfu Liu
e9c58f5114
screen, add icon
2011-02-22 00:19:36 +08:00
Xiangfu Liu
30cd9fdc7b
add hnb icon, add snownews icon
2011-02-21 23:43:50 +08:00
Xiangfu Liu
81900046d3
add -q to freedroid
2011-02-21 23:22:31 +08:00
David Kühling
58eae74c31
add octave icon
2011-02-15 23:13:00 +01:00
David Kühling
f1c4bd8110
add launcher for Octave
2011-02-15 23:00:09 +01:00
David Kühling
bd8ee72263
use gforth.png icon for gforth
2011-02-15 22:58:46 +01:00
Xiangfu Liu
bb826e0cdf
add recently new package icons
2011-02-15 16:14:10 +08:00
kyak
6dc9b3fbb0
gmenu2x: add supertux launcher
2011-02-14 17:33:04 +03:00
David Kühling
63f462caa5
add icon for brainless (launched in utf-8 graphics mode in a jfbterm)
2011-02-13 12:37:07 +01:00
kyak
db48e7387d
gmenu2x: load unicode mapping file at start
...
needed for unicode box drawing characters
2011-02-12 23:04:22 +03:00
David Kühling
b500059b9e
add icon for sokoban game: an example included with gforth
2011-02-12 14:38:17 +01:00
David Kühling
d43223c60d
add shortcut for dunnet: emacs built in text adventure, run in batch mode
2011-02-12 14:18:49 +01:00
David Kühling
766824f943
add icon for gnuplot
2011-02-09 23:06:40 +01:00