summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-09-28 00:45:33 -0400
committerpommicket <pommicket@gmail.com>2025-09-28 00:46:21 -0400
commit3c9e139aec08d1bb406a6219122ca982b4b7dc34 (patch)
tree4d7993152bbb76f1d8b7df6de45fb032332b94d0 /main.c
parente78bf3013ddb588638a93bed1f6eff4d0beb5106 (diff)
Remove trailing white space in source files
Diffstat (limited to 'main.c')
-rw-r--r--main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.c b/main.c
index 059c5ae..cbc4158 100644
--- a/main.c
+++ b/main.c
@@ -124,7 +124,7 @@ static Rect message_box_rect(Ted *ted) {
}
#if DEBUG
-static void APIENTRY gl_message_callback(GLenum source, GLenum type, unsigned int id, GLenum severity,
+static void APIENTRY gl_message_callback(GLenum source, GLenum type, unsigned int id, GLenum severity,
GLsizei length, const char *message, const void *userParam) {
(void)source; (void)type; (void)id; (void)length; (void)userParam;
if (severity == GL_DEBUG_SEVERITY_NOTIFICATION) return;
@@ -227,7 +227,7 @@ static LONG WINAPI error_signal_handler(EXCEPTION_POINTERS *info) {
fprintf(log, "Instruction: 0x%llx\n", (unsigned long long)context->Rip);
} else {
fprintf(log, "Backtrace:\n");
- HANDLE process = GetCurrentProcess(), thread = GetCurrentThread();
+ HANDLE process = GetCurrentProcess(), thread = GetCurrentThread();
// backtrace
// this here was very helpful: https://gist.github.com/jvranish/4441299
if (SymInitialize(process, NULL, true)) {
@@ -693,7 +693,7 @@ int main(int argc, char **argv) {
double frame_start = ted->frame_time;
SDL_PumpEvents();
- u32 key_modifier = ted_get_key_modifier(ted);
+ u32 key_modifier = ted_get_key_modifier(ted);
{ // get mouse position
int mouse_x = 0, mouse_y = 0;
ted->mouse_state = SDL_GetMouseState(&mouse_x, &mouse_y);
@@ -839,7 +839,7 @@ int main(int argc, char **argv) {
const char *text = event.text.text;
if (buffer
// unfortunately, some key combinations like ctrl+minus still register as a "-" text input event
- && (key_modifier & ~KEY_MODIFIER_SHIFT) == 0) {
+ && (key_modifier & ~KEY_MODIFIER_SHIFT) == 0) {
// insert the text
command_execute_string_argument(ted, CMD_INSERT_TEXT, text);
// check for trigger character
@@ -869,7 +869,7 @@ int main(int argc, char **argv) {
}
}
}
-
+
}
} break;
}