Minor fixes

This commit is contained in:
Lior Halphon
2025-11-14 23:21:15 +02:00
parent 82d3ffdd9f
commit 2015782394
2 changed files with 4 additions and 6 deletions
+3 -1
View File
@@ -346,7 +346,6 @@ static bool redraw_prompt(bool force)
else {
printf("%.*s", (int)(left - 1), string);
string += left;
left = 1;
printf(SGR("2") "%c" SGR("0"), *string);
}
printf(CSI("%uG"), (unsigned)(line.position - line.scroll + prompt_length + 1));
@@ -595,6 +594,9 @@ static void no_csi_mainloop(void)
errno = 0;
if (getline(&expression, &size, stdin) <= 0) {
if (expression) {
free(expression);
}
if (!errno) {
continue;
}
+1 -5
View File
@@ -58,10 +58,6 @@ void render_texture(void *pixels, void *previous)
SDL_RenderPresent(renderer);
}
else {
static void *_pixels = NULL;
if (pixels) {
_pixels = pixels;
}
glClearColor(0, 0, 0, 1);
glClear(GL_COLOR_BUFFER_BIT);
GB_frame_blending_mode_t mode = configuration.blending_mode;
@@ -76,7 +72,7 @@ void render_texture(void *pixels, void *previous)
mode = GB_is_odd_frame(&gb)? GB_FRAME_BLENDING_MODE_ACCURATE_ODD : GB_FRAME_BLENDING_MODE_ACCURATE_EVEN;
}
}
render_bitmap_with_shader(&shader, _pixels, previous,
render_bitmap_with_shader(&shader, pixels, previous,
GB_get_screen_width(&gb), GB_get_screen_height(&gb),
rect.x, rect.y, rect.w, rect.h,
mode);