Skip to content

Commit

Permalink
Add missing C++ casting
Browse files Browse the repository at this point in the history
  • Loading branch information
Crayon2000 committed Apr 6, 2024
1 parent bd92538 commit c4623db
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 63 deletions.
55 changes: 0 additions & 55 deletions source/grrlib/Makefile

This file was deleted.

16 changes: 8 additions & 8 deletions source/grrlib_class.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ u16 Screen::GetHeight()
*/
void FX::FlipH(const Texture *texsrc, Texture *texdest)
{
GRRLIB_BMFX_FlipH(reinterpret_cast<const GRRLIB_texImg *>(texsrc), (GRRLIB_texImg *)texdest);
GRRLIB_BMFX_FlipH(reinterpret_cast<const GRRLIB_texImg *>(texsrc), reinterpret_cast<GRRLIB_texImg *>(texdest));
}
/**
* Flip texture vertical.
Expand All @@ -622,7 +622,7 @@ void FX::FlipH(const Texture *texsrc, Texture *texdest)
*/
void FX::FlipV(const Texture *texsrc, Texture *texdest)
{
GRRLIB_BMFX_FlipV(reinterpret_cast<const GRRLIB_texImg *>(texsrc), (GRRLIB_texImg *)texdest);
GRRLIB_BMFX_FlipV(reinterpret_cast<const GRRLIB_texImg *>(texsrc), reinterpret_cast<GRRLIB_texImg *>(texdest));
}
/**
* Change a texture to gray scale.
Expand All @@ -632,7 +632,7 @@ void FX::FlipV(const Texture *texsrc, Texture *texdest)
*/
void FX::Grayscale(const Texture *texsrc, Texture *texdest)
{
GRRLIB_BMFX_Grayscale(reinterpret_cast<const GRRLIB_texImg *>(texsrc), (GRRLIB_texImg *)texdest);
GRRLIB_BMFX_Grayscale(reinterpret_cast<const GRRLIB_texImg *>(texsrc), reinterpret_cast<GRRLIB_texImg *>(texdest));
}
/**
* Change a texture to sepia (old photo style).
Expand All @@ -642,7 +642,7 @@ void FX::Grayscale(const Texture *texsrc, Texture *texdest)
*/
void FX::Sepia(const Texture *texsrc, Texture *texdest)
{
GRRLIB_BMFX_Sepia(reinterpret_cast<const GRRLIB_texImg *>(texsrc), (GRRLIB_texImg *)texdest);
GRRLIB_BMFX_Sepia(reinterpret_cast<const GRRLIB_texImg *>(texsrc), reinterpret_cast<GRRLIB_texImg *>(texdest));
}
/**
* Invert colors of the texture.
Expand All @@ -652,7 +652,7 @@ void FX::Sepia(const Texture *texsrc, Texture *texdest)
*/
void FX::Invert(const Texture *texsrc, Texture *texdest)
{
GRRLIB_BMFX_Invert(reinterpret_cast<const GRRLIB_texImg *>(texsrc), (GRRLIB_texImg *)texdest);
GRRLIB_BMFX_Invert(reinterpret_cast<const GRRLIB_texImg *>(texsrc), reinterpret_cast<GRRLIB_texImg *>(texdest));
}
/**
* A texture effect (Blur).
Expand All @@ -663,7 +663,7 @@ void FX::Invert(const Texture *texsrc, Texture *texdest)
*/
void FX::Blur(const Texture *texsrc, Texture *texdest, const u32 factor)
{
GRRLIB_BMFX_Blur(reinterpret_cast<const GRRLIB_texImg *>(texsrc), (GRRLIB_texImg *)texdest, factor);
GRRLIB_BMFX_Blur(reinterpret_cast<const GRRLIB_texImg *>(texsrc), reinterpret_cast<GRRLIB_texImg *>(texdest), factor);
}
/**
* A texture effect (Scatter).
Expand All @@ -674,7 +674,7 @@ void FX::Blur(const Texture *texsrc, Texture *texdest, const u32 factor)
*/
void FX::Scatter(const Texture *texsrc, Texture *texdest, const u32 factor)
{
GRRLIB_BMFX_Scatter(reinterpret_cast<const GRRLIB_texImg *>(texsrc), (GRRLIB_texImg *)texdest, factor);
GRRLIB_BMFX_Scatter(reinterpret_cast<const GRRLIB_texImg *>(texsrc), reinterpret_cast<GRRLIB_texImg *>(texdest), factor);
}
/**
* A texture effect (Pixelate).
Expand All @@ -685,5 +685,5 @@ void FX::Scatter(const Texture *texsrc, Texture *texdest, const u32 factor)
*/
void FX::Pixelate(const Texture *texsrc, Texture *texdest, const u32 factor)
{
GRRLIB_BMFX_Pixelate(reinterpret_cast<const GRRLIB_texImg *>(texsrc), (GRRLIB_texImg *)texdest, factor);
GRRLIB_BMFX_Pixelate(reinterpret_cast<const GRRLIB_texImg *>(texsrc), reinterpret_cast<GRRLIB_texImg *>(texdest), factor);
}

0 comments on commit c4623db

Please sign in to comment.