Skip to content

Commit 1e0f991

Browse files
author
Robert Soliday
committed
Added fix for edit mode on Ubuntu 24.04 proposed by Rong Huang. Also incremented version number.
1 parent 57ebb05 commit 1e0f991

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

medm/medmVersion.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
*/
6868
#define MEDM_VERSION 3
6969
#define MEDM_REVISION 1
70-
#define MEDM_MODIFICATION 20
70+
#define MEDM_MODIFICATION 21
7171
#define MEDM_PATCH_LEVEL 0
72-
#define MEDM_VERSION_STRING "MEDM Version 3.1.20"
73-
#define MEDM_VERSION_DIGITS "MEDM030120"
72+
#define MEDM_VERSION_STRING "MEDM Version 3.1.21"
73+
#define MEDM_VERSION_DIGITS "MEDM030121"

medm/resourcePalette.c

+8
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
#define DEBUG_TEXT_VERIFY 0
2626
#define DEBUG_LOSING_FOCUS 0
2727
#define DEBUG_RELATED_DISPLAY 0
28+
#if defined(_WIN32)
29+
#include <windows.h>
30+
#endif
2831

2932
#include <ctype.h>
3033
#include <stdint.h>
@@ -2471,6 +2474,11 @@ static void initializeResourcePaletteElements()
24712474
/* Reset the index, fill the rest with zeros */
24722475
for (k = j; k < MAX_RESOURCES_FOR_DL_ELEMENT; k++)
24732476
{
2477+
#if defined(_WIN32)
2478+
Sleep(50)
2479+
#else
2480+
sleep(.05);
2481+
#endif
24742482
resourcePaletteElements[index].childIndexRC[k] = 0;
24752483
resourcePaletteElements[index].children[k] = NULL;
24762484
}

0 commit comments

Comments
 (0)