Skip to content

Commit a96f35e

Browse files
committed
Upgrade SDL TTF headers
1 parent 3bb8a5c commit a96f35e

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<p align="center">
88
<a href="https://github.com/php-ffi-headers/sdl2-ttf-headers/actions"><img src="https://github.com/php-ffi-headers/sdl2-ttf-headers/workflows/build/badge.svg"></a>
99
<a href="https://packagist.org/packages/ffi-headers/sdl2-ttf-headers"><img src="https://img.shields.io/badge/PHP-8.1.0-ff0140.svg"></a>
10-
<a href="https://packagist.org/packages/ffi-headers/sdl2-ttf-headers"><img src="https://img.shields.io/badge/SDL2%20TTF-2.20.0-cc3c20.svg"></a>
10+
<a href="https://packagist.org/packages/ffi-headers/sdl2-ttf-headers"><img src="https://img.shields.io/badge/SDL2%20TTF-2.20.1-cc3c20.svg"></a>
1111
<a href="https://packagist.org/packages/ffi-headers/sdl2-ttf-headers"><img src="https://poser.pugx.org/ffi-headers/sdl2-ttf-headers/version" alt="Latest Stable Version"></a>
1212
<a href="https://packagist.org/packages/ffi-headers/sdl2-ttf-headers"><img src="https://poser.pugx.org/ffi-headers/sdl2-ttf-headers/v/unstable" alt="Latest Unstable Version"></a>
1313
<a href="https://packagist.org/packages/ffi-headers/sdl2-ttf-headers"><img src="https://poser.pugx.org/ffi-headers/sdl2-ttf-headers/downloads" alt="Total Downloads"></a>

resources/headers/.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
*
22
!.gitignore
3-
!2.20.0/
3+
!2.20.1/

resources/headers/2.20.0/SDL_ttf.h renamed to resources/headers/2.20.1/SDL_ttf.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ extern "C" {
4949
*/
5050
#define SDL_TTF_MAJOR_VERSION 2
5151
#define SDL_TTF_MINOR_VERSION 20
52-
#define SDL_TTF_PATCHLEVEL 0
52+
#define SDL_TTF_PATCHLEVEL 1
5353

5454
/**
5555
* This macro can be used to fill a version structure with the compile-time

src/SDL2TTF/Version.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ enum Version: string implements ComparableInterface
3030
case V2_0_15 = '2.0.15';
3131
case V2_0_18 = '2.0.18';
3232
case V2_20_0 = '2.20.0';
33+
case V2_20_1 = '2.20.1';
3334

34-
public const LATEST = self::V2_20_0;
35+
public const LATEST = self::V2_20_1;
3536

3637
/**
3738
* @param non-empty-string $version

tests/BinaryCompatibilityTestCase.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ protected function skipIfVersionNotCompatible(Version $version, string $binary):
5353
public function testWindowsBinaryCompatibility(Version $version): void
5454
{
5555
if (!\is_file(self::DIR_STORAGE . '/SDL2.dll')) {
56-
Downloader::zip(\vsprintf('https://www.libsdl.org/release/SDL2-2.0.20-win32-x64.zip', [
56+
Downloader::zip(\vsprintf('https://www.libsdl.org/release/SDL2-2.24.0-win32-x64.zip', [
5757
$version->toString()
5858
]))
5959
->extract('SDL2.dll', self::DIR_STORAGE . '/SDL2.dll');
6060
}
6161

6262
if (!\is_file($binary = self::DIR_STORAGE . '/SDL2_ttf.dll')) {
63-
Downloader::zip('https://github.com/libsdl-org/SDL_ttf/releases/download/release-2.0.18/SDL2_ttf-2.0.18-win32-x64.zip')
63+
Downloader::zip('https://github.com/libsdl-org/SDL_ttf/releases/download/release-2.20.1/SDL2_ttf-2.20.1-win32-x64.zip')
6464
->extract('SDL2_ttf.dll', self::DIR_STORAGE . '/SDL2_ttf.dll');
6565
}
6666

0 commit comments

Comments
 (0)