Skip to content
Snippets Groups Projects
Commit 88cc7fe8 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix assignment reversal in last commit

Fix a couple warnings while we're here.
parent 79831364
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4110 passed
......@@ -667,7 +667,7 @@ static void setup_surfaces_locked(struct video_stats *vs)
}
if (vs != &vstat) {
pthread_mutex_lock(&vstatlock);
*vs = vstat;
vstat = *vs;
pthread_mutex_unlock(&vstatlock);
}
sdl.SetWindowMinimumSize(win, idealmw, idealmh);
......@@ -683,13 +683,6 @@ static void setup_surfaces_locked(struct video_stats *vs)
pthread_mutex_unlock(&win_mutex);
}
static void setup_surfaces(void)
{
pthread_mutex_lock(&vstatlock);
setup_surfaces_locked(&vstat);
pthread_mutex_unlock(&vstatlock);
}
/* Called from event thread only */
static void sdl_add_key(unsigned int keyval, struct video_stats *vs)
{
......
......@@ -8,6 +8,7 @@
#include <genwrap.h>
#include <math.h>
#include <stdbool.h>
#include <string.h>
#include <vidmodes.h>
#include "conn.h"
......@@ -18,6 +19,7 @@
#include "menu.h"
#include "saucedefs.h"
#include "sexyz.h"
#include "strwrap.h"
#include "syncterm.h"
#include "telnet_io.h"
#include "term.h"
......@@ -27,6 +29,7 @@
#include "xmodem.h"
#include "xpbeep.h"
#include "xpendian.h"
#include "xpprintf.h"
#include "zmodem.h"
#ifndef WITHOUT_OOII
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment