Fork and clean up textviewer.
This commit is contained in:
parent
95487118d5
commit
853ca68ade
2 changed files with 3 additions and 23 deletions
|
@ -1,10 +1,11 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2021-present Shanti Gilbert (https://github.com/shantigilbert)
|
||||
# Copyright (C) 2023-present Fewtarius
|
||||
|
||||
PKG_NAME="textviewer"
|
||||
PKG_VERSION="a01d9c23db92b0757b3e9b1ff11e040337d945c3"
|
||||
PKG_VERSION="16d4c69"
|
||||
PKG_LICENSE="MIT"
|
||||
PKG_SITE="https://github.com/lethal-guitar/TvTextViewer"
|
||||
PKG_SITE="https://github.com/JustEnoughLinuxOS/TvTextViewer"
|
||||
PKG_URL="${PKG_SITE}.git"
|
||||
PKG_DEPENDS_TARGET="toolchain dos2unix:host SDL2"
|
||||
PKG_SHORTDESC="Full-screen text viewer tool with gamepad controls"
|
||||
|
@ -19,16 +20,8 @@ if [ "${OPENGLES_SUPPORT}" = yes ]; then
|
|||
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
|
||||
fi
|
||||
|
||||
pre_patch() {
|
||||
find $(echo "${PKG_BUILD}" | cut -f1 -d\ ) -type f -exec ${TOOLCHAIN}/bin/dos2unix -q {} \;
|
||||
}
|
||||
|
||||
pre_configure_target() {
|
||||
sed -i "s|sdl2-config|${SYSROOT_PREFIX}/usr/bin/sdl2-config|g" Makefile
|
||||
sed -i 's|ImGui::SetNextWindowFocus();|ImGui::SetFocusID(ImGui::GetID("Close"), ImGui::GetCurrentWindow());\n ImGui::GetCurrentContext()->NavDisableHighlight = false;\n ImGui::GetCurrentContext()->NavDisableMouseHover = true;|g' view.cpp
|
||||
sed -i 's|ImGui::PushStyleColor(ImGuiCol_WindowBg, ImVec4(ImColor(94, 11, 22, 255))); // Set window background to red|ImGui::PushStyleColor(ImGuiCol_Button, ImVec4(ImColor(100, 0, 0, 255)));\n ImGui::PushStyleColor(ImGuiCol_NavHighlight, ImVec4(ImColor(180, 0, 0, 255)));\n ImGui::PushStyleColor(ImGuiCol_ButtonHovered, ImVec4(ImColor(180, 0, 0, 255)));|g' main.cpp
|
||||
sed -i 's|ImColor(94, 11, 22,|ImColor(180, 0, 0,|g' main.cpp
|
||||
sed -i 's|BUTTON_START|BUTTON_INVALID|g' main.cpp
|
||||
}
|
||||
|
||||
makeinstall_target(){
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
diff --git a/imgui_impl_sdl.h b/imgui_impl_sdl.h
|
||||
index 38a73b6..670561e 100644
|
||||
--- a/imgui_impl_sdl.h
|
||||
+++ b/imgui_impl_sdl.h
|
||||
@@ -17,7 +17,7 @@
|
||||
#pragma once
|
||||
#include "imgui.h" // IMGUI_IMPL_API
|
||||
|
||||
-#include <SDL_gamecontroller.h>
|
||||
+#include <SDL2/SDL_gamecontroller.h>
|
||||
|
||||
#include <vector>
|
||||
|
Loading…
Reference in a new issue