Skip to content

Instantly share code, notes, and snippets.

View Mercotui's full-sized avatar
๐Ÿง
Compiling

Menno van der Graaf Mercotui

๐Ÿง
Compiling
View GitHub Profile
@Mercotui
Mercotui / 3.1.0-0001-rotate-screen-90-degrees.patch
Last active October 22, 2024 19:28
This patch for chocolate-doom 3.1.0 will rotate the screen by 90 degrees
diff --git a/src/i_video.c b/src/i_video.c
index 9d9c8ccb..8bea5f6b 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -409,7 +409,7 @@ static void I_ToggleFullScreen(void)
if (!fullscreen)
{
AdjustWindowSize();
- SDL_SetWindowSize(screen, window_width, window_height);
+ SDL_SetWindowSize(screen, window_height, window_width);
@Mercotui
Mercotui / 2.30.6-0001-add-mali-fb-support.patch
Created September 27, 2024 09:25
SDL 2.30.6 mali fb support
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7e135490a..79aff66c1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -474,6 +474,7 @@ set_option(SDL_WASAPI "Use the Windows WASAPI audio driver" ${WINDO
set_option(SDL_RENDER_D3D "Enable the Direct3D render driver" ${WINDOWS})
set_option(SDL_RENDER_METAL "Enable the Metal render driver" ${APPLE})
set_option(SDL_VIVANTE "Use Vivante EGL video driver" ${UNIX_SYS})
+set_option(SDL_MALI "Use Mali EGL video driver" ${UNIX_SYS})
dep_option(SDL_VULKAN "Enable Vulkan support" ON "ANDROID OR APPLE OR LINUX OR WINDOWS" OFF)
@Mercotui
Mercotui / CardGenerator.html
Last active February 15, 2024 00:33
Generate Cute Emoji Patterns
<!DOCTYPE html>
<head>
<meta charset="utf-8" />
<title>Card Generator</title>
</head>
<body style="font-family: sans-serif monospace; font-size: 45px; background-color: pink;">
<script type = "text/javascript">
const charset = ["๐Ÿ’", "๐Ÿ’", "๐Ÿ’Œ", "๐Ÿ’•", "๐Ÿซ", "๐Ÿ’˜", "๐ŸŒน", "๐Ÿฐ", "๐Ÿงธ", "๐Ÿฅฐ", "๐ŸŽ€", "โค๏ธ", "๐ŸŒท", "๐Ÿญ", "๐Ÿน", "๐ŸŒบ", "๐Ÿ’—", "๐Ÿง", "๐Ÿ“", "๐Ÿ’", "โœจ"];
const offset = 7;
const paddingChar = ' ';
@Mercotui
Mercotui / closure_test.rs
Created January 12, 2023 21:49
A test of a programming patern that I want to apply in a rust application
struct MenuItem<'a> {
activation_callback: &'a dyn Fn(),
}
impl<'a> MenuItem<'a> {
pub fn select(&self) {
(self.activation_callback)();
}
}
@Mercotui
Mercotui / duplicate_clicks.ahk
Last active June 14, 2023 05:10
An Auto HotKey script to duplicate clicks between two windows
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Script to duplicate mouseclicks in other windows
; Mercotui 2019, WTFPL license
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#persistent
#SingleInstance Force
#warn
OnStartup()
; GLOBAL VARIABLES

Keybase proof

I hereby claim:

  • I am mercotui on github.
  • I am mercotui (https://keybase.io/mercotui) on keybase.
  • I have a public key whose fingerprint is CC2C A9E0 D40D EE5F 9DF5 6313 68CC C4E4 65DD 7281

To claim this, I am signing this object: