Commit Graph

45 Commits

Author SHA1 Message Date
Johannes Schickel
3f2057226f Commit salty-horse's patch for VectorRendererSpec.cpp, which fixes the use of invalid C++.
svn-id: r48291
2010-03-18 21:45:27 +00:00
Max Horn
8ba75fc522 Fix code formatting (esp. 'if(' -> 'if (' etc., but also indention and other things)
svn-id: r44495
2009-09-30 16:16:53 +00:00
Johannes Schickel
f41b496255 Fixed missing clearing of the low bit of the alpha mask in the "dim" screen shading function.
svn-id: r42935
2009-07-30 16:51:53 +00:00
Johannes Schickel
8c323b6bb8 Fix bug #2829737: "GUI: Wrong background colours on dialog screens (IRIX)".
svn-id: r42934
2009-07-30 16:43:25 +00:00
Vicent Marti
af289bdb03 Fixed bug 2820514 ("Help dialog causes crash")
svn-id: r42537
2009-07-16 17:29:31 +00:00
Johannes Schickel
16c949d24a Formatting.
svn-id: r42530
2009-07-16 11:41:45 +00:00
Vicent Marti
40d8209bca Fixed issue with beveled shapes being drawn outside their shapes. Possible regressions.
svn-id: r42529
2009-07-16 11:37:36 +00:00
Johannes Schickel
b3c6751b9b Strip trailing whitespaces in the whole code base.
svn-id: r40867
2009-05-24 15:17:42 +00:00
Eugene Sandulenko
8f4a2c1476 Silence warnings. Const correctness
svn-id: r40347
2009-05-06 09:12:58 +00:00
Vicent Marti
9e54b1c963 Fixed bug #2619802 (Game name overwrites scroll bar).
svn-id: r39335
2009-03-11 20:39:31 +00:00
Joost Peters
2b8eba751e Honour alpha bits in applyScreenShading() (used in "add game", "edit game" and "options" dialogs).
svn-id: r38478
2009-02-18 13:48:14 +00:00
Vicent Marti
a2c9faed29 Fixed bug #2609755 (GUI memory corruption).
svn-id: r38447
2009-02-17 20:50:30 +00:00
Johannes Schickel
2bb7b23748 Change formatting to match our code guidelines.
svn-id: r38382
2009-02-16 21:19:02 +00:00
Johannes Schickel
11862f3db3 Cleanup.
svn-id: r38381
2009-02-16 21:17:14 +00:00
Johannes Schickel
0d927db838 Removed obsolete FIXME.
svn-id: r38380
2009-02-16 21:06:28 +00:00
Lars Persson
c4fb8cf4f1 Fixed VectorRenderSpec for no fancy theme!
svn-id: r38377
2009-02-16 19:07:41 +00:00
Max Horn
4dbbbc1358 GUI: Fixed long-standing bug in calcGradient (gradients look a bit better now)
svn-id: r36311
2009-02-13 19:24:32 +00:00
Max Horn
aa25651331 cleanup
svn-id: r36309
2009-02-13 19:00:46 +00:00
Max Horn
a351648358 Rewrote VectorRendererSpec & VectorRendererAA to use a Graphics::PixelFormat, instead of relying on color masks -> should fix bug #2537212, possibly at a slow down on low-end systems (a regression which we certainly could resolve, though). Note: I left the PixelType template param in on purpose, in case we want one day to compile in both 16 and 32 bit pixel support simultaneously
svn-id: r36288
2009-02-13 00:03:13 +00:00
Max Horn
5f634212aa GUI renderer: some cleanup; added comment on sqrt implementation (on my system, plain sqrt is 50x faster -- on highest optimization levels, otherwise it is something like 200x)
svn-id: r36277
2009-02-12 04:34:57 +00:00
Filippos Karapetis
f1ebbebd7b Silenced MSVC warning (MSVC is being silly here...)
svn-id: r36185
2009-02-01 20:52:53 +00:00
Marcus Comstedt
f90e4545c2 Merged r36175 from branch-0-13-0:
Fixed alpha blending in the UI dialogs by adding alpha
computation to the blendPixelPtr() function.  To minimize
impact, pre-multiplied alpha is assumed, meaning that the
blending of the R, G and B components is the same both
with and without hardware alpha.

svn-id: r36177
2009-02-01 14:56:19 +00:00
Max Horn
e354c4b4f2 Got rid of VectorRenderer::surfacePitch() & VectorRenderer::bytesPerPixel(): the latter was not used, for the former it is silly to go through a virtual method to compute that value; all in all, this code performs too many unnecessary divisions ;)
svn-id: r36151
2009-01-30 16:18:58 +00:00
Max Horn
f465abb75d Removed unused area convolution code from VectorRenderer
svn-id: r36148
2009-01-30 15:43:45 +00:00
Joost Peters
508f254ff7 error out when no renderer was created due to unknown/unsupported PixelFormat
svn-id: r36074
2009-01-26 16:39:05 +00:00
Max Horn
0034aa3b9c Got rid of several occurrences of gBitFormat
svn-id: r35995
2009-01-22 04:59:09 +00:00
Jordi Vilalta Prat
d18d2d72a8 Fix for the SliderWidget glitch when showing very small values (and potentially for other small widgets)
svn-id: r35557
2008-12-26 12:15:51 +00:00
Jordi Vilalta Prat
b1999a2a16 Fixed indentation and removed whitespaces at the end of line
svn-id: r35481
2008-12-22 11:22:15 +00:00
Jordi Vilalta Prat
1ccce41c8f Fix the rendering of stroked tabs
svn-id: r35479
2008-12-22 09:47:13 +00:00
Max Horn
c0f82d3518 Renamed Graphics::TextAlignment -> Graphics::TextAlign and merged it with GUI::ThemeEngine::TextAlignVertical
svn-id: r35023
2008-11-12 14:30:16 +00:00
Vicent Marti
b98f89c7f0 Merged GUI::Theme and Gui::ThemeEngine into the same class, GUI::ThemeEngine.
Massive cleanup.

svn-id: r34983
2008-11-10 11:24:55 +00:00
Johannes Schickel
ebcb486191 Enable gui renderer for all bit depths we support currently.
svn-id: r34865
2008-10-29 20:02:56 +00:00
Johannes Schickel
98b0c4b33c Committed my patch from -devel, which reintroduces DISABLE_FANCY_THEMES to strip functionallity in theme renderer uneeded by small devices.
svn-id: r34864
2008-10-29 19:48:15 +00:00
Vicent Marti
ec60fc6db7 Fixed small graphical glitch in Classic theme tabs.
svn-id: r34760
2008-10-09 17:15:10 +00:00
Vicent Marti
4f511db2c1 Bugfix: Graphical glitch when drawing beveled squares (classic theme).
svn-id: r34611
2008-09-20 14:06:18 +00:00
Vicent Marti
46168618be - Reverted circle drawing algorithm.
- Fixed Launcher savegame load menu.

svn-id: r34610
2008-09-20 13:52:12 +00:00
Johannes Schickel
0d4ce96799 Fixed warnings.
svn-id: r34609
2008-09-20 13:04:50 +00:00
Vicent Marti
c7e07102b6 Unrolled a loop.
Misc fixes.

svn-id: r34604
2008-09-19 17:15:20 +00:00
Vicent Marti
81715eae04 Fixed bottleneck: Screen dimming.
svn-id: r34482
2008-09-10 18:43:24 +00:00
Vicent Marti
dcc2caf6d0 Misc performance fixes.
svn-id: r34398
2008-09-07 09:43:10 +00:00
Vicent Marti
e0592c7d25 Fixed severe bottleneck in the XML Parser code.
Applied Max's patch for character drawing.
Added new FP squareroot function.

svn-id: r34354
2008-09-05 14:48:47 +00:00
Max Horn
020be5bc21 Fixing a typo :)
svn-id: r34342
2008-09-05 11:33:19 +00:00
Vicent Marti
dcc72fe29e Massive refactoring/cleanup on the theme engine/parser.
svn-id: r34285
2008-09-02 17:51:08 +00:00
Max Horn
83cc4e1c92 Use memcpy instead of hand-rolled colorCopy (on many systems, memcpy is hand-optimized asm or even a compiler built-in and *way* faster than any C code you could roll yourself -- it's way faster on my system, too)
svn-id: r34238
2008-09-01 12:41:46 +00:00
Vicent Marti
b53220d2cc Split VectorRenderer interface from custom vector renderers.
svn-id: r34226
2008-08-31 13:51:48 +00:00