mirror of
https://github.com/LIJI32/SameBoy.git
synced 2026-10-12 02:06:38 +00:00
Minor fixes
This commit is contained in:
+3
-1
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user