Skip to content

Commit 376aa0c

Browse files
YankesYankes
authored andcommitted
-fixed small bug
1 parent b37dad2 commit 376aa0c

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/Engine/Surface.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -674,9 +674,8 @@ struct ColorReplace
674674
* @param shade value of shade of this surface
675675
* @param newColor new color to set (it should be offseted by 4)
676676
* @param notused
677-
* @return new value for destination pixel
678677
*/
679-
static inline Uint8 func(Uint8& dest, const Uint8& src, const int& shade, const int& newColor, const int&)
678+
static inline void func(Uint8& dest, const Uint8& src, const int& shade, const int& newColor, const int&)
680679
{
681680
if(src)
682681
{
@@ -704,9 +703,8 @@ struct StandartShade
704703
* @param shade value of shade of this surface
705704
* @param notused
706705
* @param notused
707-
* @return new value for destination pixel
708706
*/
709-
static inline Uint8 func(Uint8& dest, const Uint8& src, const int& shade, const int&, const int&)
707+
static inline void func(Uint8& dest, const Uint8& src, const int& shade, const int&, const int&)
710708
{
711709
if(src)
712710
{

0 commit comments

Comments
 (0)