Репозитории ALT
S: | 1.3.7-alt2 |
5.1: | 1.3.0-alt5 |
4.1: | 1.3.0-alt2.M41.3 |
3.0: | 1.2.2-alt2 |
Группа :: Игры/Спорт
Пакет: TORCS
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: TORCS-1.3.0-alt-libpng15.patch
Скачать
Скачать
diff --git a/TORCS-1.3.0-src/src/libs/tgfclient/img.cpp b/TORCS-1.3.0-src/src/libs/tgfclient/img.cpp
index 3141496..2f76f38 100644
--- a/TORCS-1.3.0-src/src/libs/tgfclient/img.cpp
+++ b/TORCS-1.3.0-src/src/libs/tgfclient/img.cpp
@@ -98,7 +98,7 @@ GfImgReadPng(const char *filename, int *widthp, int *heightp, float screen_gamma
return (unsigned char *)NULL;
}
- if (setjmp(png_ptr->jmpbuf))
+ if (setjmp(png_jmpbuf(png_ptr)))
{
/* Free all of the memory associated with the png_ptr and info_ptr */
png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL);
@@ -229,7 +229,7 @@ GfImgWritePng(unsigned char *img, const char *filename, int width, int height)
return -1;
}
- if (setjmp(png_ptr->jmpbuf)) {
+ if (setjmp(png_jmpbuf(png_ptr))) {
png_destroy_write_struct(&png_ptr, &info_ptr);
fclose(fp);
return -1;