Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
  • 3 commits
  • 3 files changed
  • 0 commit comments
  • 2 contributors
Showing with 2 additions and 10 deletions.
  1. +0 −8 src/editor/robo_ed.c
  2. +1 −1 src/event_sdl.c
  3. +1 −1 src/render_sdl.c
View
8 src/editor/robo_ed.c
@@ -1379,11 +1379,7 @@ static int copy_buffer_to_X11_selection(const SDL_Event *event)
static void copy_buffer_to_selection(void)
{
-#if SDL_VERSION_ATLEAST(2,0,0)
SDL_Window *window = SDL_GetWindowFromID(sdl_window_id);
-#else
- SDL_Window *window = SDL_GetWindowFromID(graphics.window_id);
-#endif
SDL_SysWMinfo info;
SDL_VERSION(&info.version);
@@ -1400,11 +1396,7 @@ static void copy_buffer_to_selection(void)
static bool copy_selection_to_buffer(struct robot_state *rstate)
{
-#if SDL_VERSION_ATLEAST(2,0,0)
SDL_Window *window = SDL_GetWindowFromID(sdl_window_id);
-#else
- SDL_Window *window = SDL_GetWindowFromID(graphics.window_id);
-#endif
int selection_format, line_length, ret_type;
char line_buffer[COMMAND_BUFFER_LEN];
unsigned long int nbytes, overflow;
View
2 src/event_sdl.c
@@ -292,7 +292,7 @@ static bool process_event(SDL_Event *event)
case SDL_KEYDOWN:
{
- Uint16 unicode;
+ Uint16 unicode = 0;
#if SDL_VERSION_ATLEAST(2,0,0)
// FIXME: SDL 2.0 finally implements proper key repeat.
View
2 src/render_sdl.c
@@ -21,7 +21,7 @@
#include "SDL.h"
-Uint32 sdl_window_id;
+CORE_LIBSPEC Uint32 sdl_window_id;
#ifndef CONFIG_RENDER_YUV
static

No commit comments for this range

Something went wrong with that request. Please try again.