From 492ed877eac10a16609a44b11cdfe836236bf494 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Wed, 22 Oct 2025 10:48:36 -0700
Subject: [PATCH] Removed __FILE__ from source code
(cherry picked from commit f79ede100b874a2a542bd418e8b5554a527a0929)
---
src/video/android/SDL_androidtouch.c | 2 +-
src/video/haiku/SDL_bmodes.cc | 2 +-
src/video/haiku/SDL_bwindow.cc | 1 -
3 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/video/android/SDL_androidtouch.c b/src/video/android/SDL_androidtouch.c
index b93aabcd29aa2..a41f5a6de786b 100644
--- a/src/video/android/SDL_androidtouch.c
+++ b/src/video/android/SDL_androidtouch.c
@@ -81,7 +81,7 @@ void Android_OnTouch(SDL_Window *window, int touch_device_id_in, int pointer_fin
fingerId = (SDL_FingerID)(pointer_finger_id_in + 1);
if (SDL_AddTouch(touchDeviceId, SDL_TOUCH_DEVICE_DIRECT, "") < 0) {
- SDL_Log("error: can't add touch %s, %d", __FILE__, __LINE__);
+ return;
}
switch (action) {
diff --git a/src/video/haiku/SDL_bmodes.cc b/src/video/haiku/SDL_bmodes.cc
index 32c8b6d424e4d..7397145870826 100644
--- a/src/video/haiku/SDL_bmodes.cc
+++ b/src/video/haiku/SDL_bmodes.cc
@@ -265,7 +265,7 @@ bool HAIKU_SetDisplayMode(SDL_VideoDevice *_this, SDL_VideoDisplay *display, SDL
// Get the current screen
BScreen bscreen;
if (!bscreen.IsValid()) {
- printf(__FILE__": %d - ERROR: BAD SCREEN\n", __LINE__);
+ return SDL_SetError("Invalid screen");
}
// Set the mode using the driver data
diff --git a/src/video/haiku/SDL_bwindow.cc b/src/video/haiku/SDL_bwindow.cc
index 47a28d38626c8..79d4313e8f47f 100644
--- a/src/video/haiku/SDL_bwindow.cc
+++ b/src/video/haiku/SDL_bwindow.cc
@@ -55,7 +55,6 @@ static bool _InitWindow(SDL_VideoDevice *_this, SDL_Window *window, SDL_Properti
if (window->flags & SDL_WINDOW_FULLSCREEN) {
// TODO: Add support for this flag
- printf(__FILE__": %d!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n",__LINE__);
}
if (window->flags & SDL_WINDOW_OPENGL) {
// TODO: Add support for this flag