File: gcc-15.patch

package info (click to toggle)
penguin-command 1.6.11-4.1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,436 kB
  • sloc: ansic: 6,514; sh: 3,167; objc: 224; makefile: 68
file content (20 lines) | stat: -rw-r--r-- 548 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Fix FTBFS with GCC 15
Author: Adrian Bunk <bunk@debian.org>
Bug-Debian: https://bugs.debian.org/1097569

--- penguin-command-1.6.11.orig/src/gfx.c
+++ penguin-command-1.6.11/src/gfx.c
@@ -260,11 +260,11 @@ int DoLinePart (SDL_Surface *Surface, Si
 
 void LinePart(Sint32 X1, Sint32 Y1, Sint32 X2, Sint32 Y2, Sint32 lower, Sint32 upper, Uint32 Color)
 {
-   lock(Screen);
+   lock();
 
    /* Draw the line */
    DoLinePart(Screen, X1, Y1, X2, Y2, lower, upper, Color, &PutPixel);
-   unlock(Screen);
+   unlock();
 }
 
 void Update()