From 38b846487af9ce861a17e1068d3eb679d762f853 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Sun, 10 Feb 2019 15:59:48 +0000 Subject: [PATCH] Fixed (C)Pixel .pbm protection on 32-bit builds --- src/Draw.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Draw.cpp b/src/Draw.cpp index 7f424d64..3425b022 100644 --- a/src/Draw.cpp +++ b/src/Draw.cpp @@ -66,18 +66,15 @@ bool Flip_SystemTask() static bool IsEnableBitmap(SDL_RWops *fp) { - return true; - /* char str[16]; const char *extra_text = "(C)Pixel"; const size_t len = strlen(extra_text); - fp->seek(fp, -len, RW_SEEK_END); + fp->seek(fp, -(Sint64)len, RW_SEEK_END); fp->read(fp, str, 1, len); fp->seek(fp, 0, RW_SEEK_SET); return memcmp(str, extra_text, len) == 0; - */ } void ReleaseSurface(int s)