Commit Graph

60 Commits

Author SHA1 Message Date
D G Turner
6a2522a142 GRAPHICS: Crash fix for bug #3466536 ("Assertion on MIDI gain slider").
This fixes the crash, but the Midi Gain slider (and probably any other
slider bar in modern theme) still distorts the left corner shape when
the slider thumb is at very small values...
2011-12-29 06:32:09 +00:00
Eugene Sandulenko
71d6771be5 GUI: Implement dithering for tabs and round squares 2011-12-14 00:56:15 +00:00
Alyssa Milburn
50c9aa1bc1 GRAPHICS: Fix compiler warnings. 2011-12-10 14:16:35 +01:00
Eugene Sandulenko
9d3eb2ebd7 GUI: Refactor gradient calculation into separate method 2011-12-10 11:51:10 +00:00
Eugene Sandulenko
1dbc41d411 GUI: Move _gradientBytes to VectorRendererSpec 2011-12-10 11:51:10 +00:00
Eugene Sandulenko
04d1c1d54b GUI: Implemented color dithering for background 2011-12-10 11:51:10 +00:00
MaximRussia
ad4471f70c GUI: Improved pop up and scrollbar arrows look
Previous triangle drawing was all wrong, rewrote it from the scratch.
Added padding to drawsteps in stx files
2011-12-07 14:04:10 +00:00
Johannes Schickel
61795739f8 COMMON: Rename Common::set_to to Common::fill.
This makes the name match with the name of the STL function with the same
behavior.
2011-11-16 18:06:30 +01:00
Willem Jan Palenstijn
052177d136 COMMON: Remove some double-underscore defines (reserved) 2011-11-14 14:59:58 +01:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Johannes Schickel
71bdb86e02 Merge pull request #16 "Add a PixelFormat to Graphics::Surface.".
For further discussion check here:
https://github.com/scummvm/scummvm/pull/16

Conflicts:
	graphics/png.cpp
2011-05-01 16:54:45 +02:00
Ori Avtalion
9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Johannes Schickel
3fd919060c GRPAHICS: Do not access Surface::bytesPerPixel anymore. 2011-04-17 20:58:08 +02:00
Torbjörn Andersson
54b2a8c98d JANITORIAL: Cleanup (mostly whitespace)
svn-id: r53161
2010-10-12 04:19:58 +00:00
Eugene Sandulenko
d2cf99f67d GUI: Fixed bug #2505686: "GUI: minor artifacts in rounded corners"
It is practically not possible to get rid of those completely
due to rounding errors with 16-bit surface.

svn-id: r52367
2010-08-25 07:39:08 +00:00
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