mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-09-03 00:30:01 +02:00
Fixed C casts to reinterpret cast in window icon deletion
This commit is contained in:
@@ -82,7 +82,7 @@ namespace mlx
|
|||||||
SDL_DestroyWindow(infos->window);
|
SDL_DestroyWindow(infos->window);
|
||||||
if(infos->icon != nullptr)
|
if(infos->icon != nullptr)
|
||||||
{
|
{
|
||||||
delete[] (mlx_color*)infos->icon->pixels;
|
delete[] reinterpret_cast<mlx_color*>(infos->icon->pixels);
|
||||||
SDL_FreeSurface(infos->icon);
|
SDL_FreeSurface(infos->icon);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -167,7 +167,7 @@ namespace mlx
|
|||||||
Internal::WindowInfos* infos = static_cast<Internal::WindowInfos*>(window);
|
Internal::WindowInfos* infos = static_cast<Internal::WindowInfos*>(window);
|
||||||
if(infos->icon != nullptr)
|
if(infos->icon != nullptr)
|
||||||
{
|
{
|
||||||
delete[] (mlx_color*)infos->icon->pixels;
|
delete[] reinterpret_cast<mlx_color*>(infos->icon->pixels);
|
||||||
SDL_FreeSurface(infos->icon);
|
SDL_FreeSurface(infos->icon);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user