Commit Graph

1317 Commits

Author SHA1 Message Date
Bastien Bouclet
e9bfbbd470 GRAPHICS: Allow saving thumbnails of 32 bits screens
Fixes saving in Myst ME when using the OpenGL output
2016-03-27 14:52:34 +02:00
Ori Avtalion
9b69b86f29 GRAPHICS: Prevent crash when drawing 0-height rounded corners
Opening/closing the console when scroll bars were visible caused
occasional crashes. Fixes #7089.
2016-03-26 19:43:16 +03:00
Paul Gilbert
c299b8ce08 GRAPHICS: Set parameterless Screen constructor to use screen format 2016-03-21 20:12:10 -04:00
Johannes Schickel
ce1be463c2 GRAPHICS: Implement convenience Font::drawChar taking ManagedSurface. 2016-03-21 02:03:12 +01:00
Paul Gilbert
c382e17908 GRAPHICS: Fix create call in ManagedSurface constructor 2016-03-20 20:53:01 -04:00
Paul Gilbert
14ba851d32 GRAPHICS: Fix MangaedSurface pixel casting errors 2016-03-20 16:37:19 -04:00
Johannes Schickel
2e5ef74848 GRAPHICS: Use correct bounding rect in Font::drawString taking Common::String. 2016-03-20 20:03:54 +01:00
Johannes Schickel
71c649f8d9 GRAPHICS: Mark actual dirty area as dirty in Font::drawString. 2016-03-20 19:59:55 +01:00
Paul Gilbert
390487aa43 GRAPHICS: Cleanup of ManagedSurface and Screen classes 2016-03-17 18:35:17 -04:00
Paul Gilbert
433a2daa6a GRAPHICS: Added ManagedSurface and Screen classes 2016-03-14 20:56:14 -04:00
Johannes Schickel
b6b2bcf607 GRAPHICS: Remove superfluous ABS usage to silence a warning. 2016-02-21 17:45:30 +01:00
Johannes Schickel
0a06942e4e GRAPHICS: Skip empty rects and empty shadows in VectorRendererSpec::drawSquareShadow. 2016-02-21 14:41:29 +01:00
Johannes Schickel
edaff1bdea GRAPHICS: Skip empty rects in VectorRenderer*'s drawInteriorRoundedSquareAlg. 2016-02-21 14:41:29 +01:00
Johannes Schickel
1c4f41feed GRAPHICS: Skip empty rects in VectorRendererSpec::drawTriangleFast. 2016-02-21 14:41:29 +01:00
Johannes Schickel
df65bad9d2 GRAPHICS: Skip empty rects in VectorRendererSpec::drawSquareAlg. 2016-02-21 14:41:29 +01:00
Johannes Schickel
5f61de0e68 GRAPHICS: Skip empty rects in VectorRender*'s drawTabAlg. 2016-02-21 14:41:29 +01:00
Johannes Schickel
610d2eec00 GRAPHICS: Make VectorRendererAA::drawLineAlg never divide by zero.
It won't crash any longer in the case dx = dy = 0.
2016-02-21 14:41:29 +01:00
Johannes Schickel
5bc3a5aa3f GRAPHICS: Let drawLineAlg in VectorRenderer code take unsigned dx, dy. 2016-02-21 14:41:29 +01:00
Johannes Schickel
0e7facad76 GRAPHICS: Skip empty rects in VectorRendererSpec::drawTriangleVertAlg. 2016-02-21 14:41:29 +01:00
Johannes Schickel
16aac72b60 GRAPHICS: Add comments about safe divisions in VectorRendererSpec.cpp. 2016-02-21 14:41:29 +01:00
Filippos Karapetis
b9430d7c72 GRAPHICS: Silence some false positive MSVC warnings 2016-02-19 02:38:30 +02:00
Eugene Sandulenko
6c895643aa Merge pull request #667 from a-detiste/master
JANITORIAL: Typos detected with lintian & grep
2016-02-15 18:31:50 +01:00
Alexandre Detiste
6c298e964f JANITORIAL: Typos detected with lintian & grep 2016-02-15 18:27:02 +01:00
Martin Kiewitz
956aacf83b GRAPHICS: Fully fix compilation under MSVC 2016-02-14 23:41:58 +01:00
Eugene Sandulenko
a7c7a6d5b7 GRAPHICS: Fix compilation under MSVC 2016-02-14 23:10:39 +01:00
Eugene Sandulenko
11e03fbce2 Merge pull request #658 from sev-/wage
WAGE: New Engine
2016-02-14 17:20:25 +01:00
Eugene Sandulenko
d2303ac6dd GRAPHICS: Fix regression in polygon drawing 2016-02-14 17:13:24 +01:00
Eugene Sandulenko
bbcd455004 GRAPHICS: Use our own sort instead of bubble 2016-02-14 17:13:22 +01:00
Eugene Sandulenko
5e002c4fe2 GRAPHICS: Move generic primitives from WAGE engine 2016-02-14 17:13:03 +01:00
Filippos Karapetis
5151ec0fe0 GRAPHICS: Silence an MSVC warning 2016-01-08 02:01:27 +02:00
Bastien Bouclet
2d86f6da9c GRAPHICS: Introduce a size mode for TrueType fonts
Allows to match Windows font size selection by converting font heights
to point sizes using the TrueType tables.
2015-12-21 18:41:14 +01:00
Johannes Schickel
69220505b6 GRAPHICS: Add function to query TransparentSurface's builtin PixelFormat. 2015-12-14 05:16:12 +01:00
Johannes Schickel
f7683083e2 GRAPHICS: Use tabs for indentation. 2015-12-14 02:26:11 +01:00
Johannes Schickel
f2926412fe GRAPHICS: Fix fast ALPHA_BINARY blitting with TransparentSurface.
This is a regression from 5d0f38d747 and caused
color glitches in Wintermute.
2015-12-14 02:15:28 +01:00
Eugene Sandulenko
5d0f38d747 GRAPHICS: Fix rendering in some corner cases 2015-11-17 23:17:48 +01:00
Johannes Schickel
ac93f3512f GRAPHICS: Remove unused header include. 2015-11-16 17:01:59 +01:00
Johannes Schickel
aaca04cdfc GRAPHICS: Rewrite PixelFormat::toString to be easier to understand. 2015-11-16 16:58:23 +01:00
Johannes Schickel
1c7a5e5a01 GRAPHICS: Fix component order in PixelFormat::toString output.
Formerly components were printed from bottom to top, common notation is from
top to bottom. For reference check how we name formats, like in for example:
backends/graphics/openglsdl/openglsdl-graphics.cpp:190-230
backends/graphics/surfacesdl/surfacesdl-graphics.cpp:409-490
sherlock/scalpel/scalpel.cpp:207
2015-11-16 16:28:01 +01:00
Johannes Schickel
eee8ef9dce GRAPHICS: Make PixelFormat::toString const. 2015-11-16 16:03:44 +01:00
Eugene Sandulenko
cfc626d78d GRAPHICS: Implemented utility function to print PixelFormat 2015-11-16 07:00:09 +01:00
Matthew Hoops
75acef7566 GRAPHICS: Force a cast to int to avoid gcc warnings 2015-04-11 16:12:47 -04:00
Torbjörn Andersson
6f7b0311af GRAPHICS: Fix GCC signed/unsigned warnings. 2015-03-02 08:38:33 +01:00
Filippos Karapetis
614de0d761 GRAPHICS: Remove trailing whitespace 2014-10-28 15:38:50 +02:00
Fedor
75305f136f GRAPHICS: Remove some trailing whitespace in surface.h 2014-10-28 15:03:44 +02:00
Filippos Karapetis
d3475fe3b6 GRAPHICS: Silence an MSVC warning 2014-10-19 17:03:14 +03:00
Johannes Schickel
2a75e9f1ad Merge pull request #500 from lordhoto/ttf-improvements
Improve TTF Rendering (includes Font API changes).
2014-09-07 21:23:24 +02:00
Johannes Schickel
248ea3c1ab GRAPHICS: Allow negative xOffset in TTF.
This should improve the visual looks of many fonts. However, it might result
in the first line of the glyph to be drawn left of the position specified in
drawChar.
2014-09-03 22:55:48 +02:00
Johannes Schickel
d55cd8f3b4 GRAPHICS: Allow to query the bounding box of chars/strings drawn with Font API. 2014-09-03 22:55:48 +02:00
Einar Johan Trøan Sømåen
0593c2eab2 GRAPHICS: Fix some Doxygen comments that seem wrong. 2014-08-29 03:26:48 +02:00
Matthew Hoops
6642f6df9e GRAPHICS: Improve color bit depth conversion
Data is no longer truncated it so should be more accurate. See pull request #486 for more info.
2014-08-17 17:49:37 -04:00