mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-09-02 22:40:00 +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);
|
||||
if(infos->icon != nullptr)
|
||||
{
|
||||
delete[] (mlx_color*)infos->icon->pixels;
|
||||
delete[] reinterpret_cast<mlx_color*>(infos->icon->pixels);
|
||||
SDL_FreeSurface(infos->icon);
|
||||
}
|
||||
|
||||
@@ -167,7 +167,7 @@ namespace mlx
|
||||
Internal::WindowInfos* infos = static_cast<Internal::WindowInfos*>(window);
|
||||
if(infos->icon != nullptr)
|
||||
{
|
||||
delete[] (mlx_color*)infos->icon->pixels;
|
||||
delete[] reinterpret_cast<mlx_color*>(infos->icon->pixels);
|
||||
SDL_FreeSurface(infos->icon);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user