Commit Graph

28 Commits

Author SHA1 Message Date
David Fioramonti a66e661df1 GRAPHICS: Simplify trig usage in primitives
Combined if statements and simplified trig.

cos(atan2(y,x)) = x / sqrt(x^2 + y^2) and
sin(atan2(y,x)) = y / sqrt(x^2 + y^2).
2018-09-08 16:36:57 -07:00
Adrian Frühwirth 3747d852ee JANITORIAL: Fix whitespace 2018-04-15 16:31:31 +02:00
Eugene Sandulenko 8605b6da85 GRAPHICS: Correcting think line thickness 2016-08-25 12:25:58 +02:00
Eugene Sandulenko 2b3af190db GRAPHICS: Fix potential rounding errors in the h/v thick line drawing 2016-08-25 12:18:11 +02:00
Filippos Karapetis 102fe0be9f GRAPHICS: Fix discrepancy in the thick line drawing function
The shortcuts for horizontal and vertical lines should draw the extra
thickness pixels around the line, not below it or to the right
2016-08-25 11:57:08 +03:00
Filippos Karapetis b9430d7c72 GRAPHICS: Silence some false positive MSVC warnings 2016-02-19 02:38:30 +02: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 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
Johannes Schickel 53332e8066 GRAPHICS: Make GPL headers consistent in themselves. 2014-02-18 02:39:34 +01:00
Johannes Schickel b4d0a8ba66 JANITORIAL: Enforce "} // End of namespace" with a single space after }. 2013-01-26 19:38:02 +01:00
Matthew Hoops 627684ca73 GRAPHICS: Make drawThickLine take a thickness in both x and y directions 2011-10-27 19:20:02 -04:00
strangerke 69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Torbjörn Andersson 2147f59e36 Converted some spaces to tabs.
svn-id: r30225
2008-01-05 08:17:39 +00:00
Max Horn 272f02e001 Replaced sqrtf by sqrt (the former causes more problems than the tiny potential improvement is worth it)
svn-id: r29905
2007-12-19 14:02:03 +00:00
Lars Persson 8695b4583f Include SQRTFS missing fix also for Symbian OS
svn-id: r29904
2007-12-19 09:28:35 +00:00
Max Horn 09028cc7aa Fixed typos
svn-id: r29793
2007-12-09 14:53:15 +00:00
Max Horn b1a8b8a76b Fix for bug #1845876: MACOSX 10.2.8: sqrtf undefined
svn-id: r29791
2007-12-09 14:43:31 +00:00
Eugene Sandulenko 7844ad6f2c An attempt to implement thick line drawing.
svn-id: r29639
2007-11-25 13:33:28 +00:00
Nicola Mettifogo 258901bab9 Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
svn-id: r28966
2007-09-19 08:40:12 +00:00
Max Horn 218e132e37 Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
svn-id: r27024
2007-05-30 21:56:52 +00:00
Max Horn 5072816109 Use const keyword to help compiler optimize code
svn-id: r21866
2006-04-14 01:47:33 +00:00
Max Horn 13d6a56867 Change CVS keywords to SVN keywords
svn-id: r20519
2006-02-11 10:10:44 +00:00
Eugene Sandulenko ea42bad781 Update copyright notice
svn-id: r20088
2006-01-18 17:39:49 +00:00
Eugene Sandulenko b36677af71 Update FSF address. Eek. Actually that took place on May 1, 2005
svn-id: r19142
2005-10-18 01:30:26 +00:00
Max Horn 4ec7161032 Patch #1186744 (Common line-drawing function)
svn-id: r17842
2005-04-27 20:29:19 +00:00