From a8ef4245733a008f0208b0c2ba6059217ab1f9d6 Mon Sep 17 00:00:00 2001 From: Dimitris Panokostas Date: Mon, 1 Jun 2020 09:41:33 +0200 Subject: [PATCH] Minor formatting improvement, gitignore update --- .../Amiberry-Debug-dispmanx.vgdbsettings | 203 ------------------ .../Amiberry/Amiberry-Debug.vgdbsettings | 201 ----------------- .../Amiberry-Release-dispmanx.vgdbsettings | 160 -------------- .../Amiberry/Amiberry-Release.vgdbsettings | 160 -------------- .../genblitter/genblitter-Debug.vgdbsettings | 169 --------------- .../genblitter-Release.vgdbsettings | 161 -------------- .../genlinetoscr-Debug.vgdbsettings | 169 --------------- .../genlinetoscr-Release.vgdbsettings | 161 -------------- VisualGDB/guisan/guisan-Debug.vgdbsettings | 151 ------------- VisualGDB/guisan/guisan-Release.vgdbsettings | 140 ------------ src/osdep/gui/PanelCustom.cpp | 4 +- 11 files changed, 2 insertions(+), 1677 deletions(-) delete mode 100644 VisualGDB/Amiberry/Amiberry-Debug-dispmanx.vgdbsettings delete mode 100644 VisualGDB/Amiberry/Amiberry-Debug.vgdbsettings delete mode 100644 VisualGDB/Amiberry/Amiberry-Release-dispmanx.vgdbsettings delete mode 100644 VisualGDB/Amiberry/Amiberry-Release.vgdbsettings delete mode 100644 VisualGDB/genblitter/genblitter-Debug.vgdbsettings delete mode 100644 VisualGDB/genblitter/genblitter-Release.vgdbsettings delete mode 100644 VisualGDB/genlinetoscr/genlinetoscr-Debug.vgdbsettings delete mode 100644 VisualGDB/genlinetoscr/genlinetoscr-Release.vgdbsettings delete mode 100644 VisualGDB/guisan/guisan-Debug.vgdbsettings delete mode 100644 VisualGDB/guisan/guisan-Release.vgdbsettings diff --git a/VisualGDB/Amiberry/Amiberry-Debug-dispmanx.vgdbsettings b/VisualGDB/Amiberry/Amiberry-Debug-dispmanx.vgdbsettings deleted file mode 100644 index b67b3754..00000000 --- a/VisualGDB/Amiberry/Amiberry-Debug-dispmanx.vgdbsettings +++ /dev/null @@ -1,203 +0,0 @@ - - - Debug-dispmanx - - - - Unknown - - - rpi4 - SSH - pi - - - false - - None - - $(ProjectDir) - /tmp/VisualGDB/$(ProjectDirUnixStyle) - - *.cpp - *.h - *.hpp - *.c - *.cc - *.cxx - *.mak - Makefile - *.txt - *.cmake - - true - true - - false - true - - false - false - false - false - false - $(ProjectDir) - - - - - com.visualgdb.raspberry_pi - - 8.3.0 - 8.2.1 - 1 - - - Amiberry.vcxproj - - - - 1 - true - - - - - - - - - - - - - Default - - - - true - - - - - False - - - - - true - false - - Enabled - true - true - true - - - - - ClangFormat - - - true - - apiModeling.google.GTest - core.builtin.BuiltinFunctions - core.builtin.NoReturnFunctions - core.CallAndMessage - core.DivideZero - core.DynamicTypePropagation - core.NonnilStringConstants - core.NonNullParamChecker - core.NullDereference - core.StackAddressEscape - core.UndefinedBinaryOperatorResult - core.uninitialized.ArraySubscript - core.uninitialized.Assign - core.uninitialized.Branch - core.uninitialized.CapturedBlockVariable - core.uninitialized.UndefReturn - core.VLASize - cplusplus.NewDelete - cplusplus.NewDeleteLeaks - cplusplus.SelfAssignment - deadcode.DeadStores - nullability.NullPassedToNonnull - nullability.NullReturnedFromNonnull - security.insecureAPI.getpw - security.insecureAPI.gets - security.insecureAPI.mkstemp - security.insecureAPI.mktemp - security.insecureAPI.UncheckedReturn - security.insecureAPI.vfork - unix.API - unix.cstring.BadSizeArg - unix.cstring.NullArg - unix.Malloc - unix.MallocSizeof - unix.MismatchedDeallocator - unix.StdCLibraryFunctions - unix.Vfork - - - -analyzer-store=region - -analyzer-opt-analyze-nested-blocks - -analyzer-eagerly-assume - - - - VisualGDB\VisualGDBCache - - - - - - - false - true - true - true - true - true - true - true - true - - false - false - false - false - false - false - true - false - None - true - false - main - true - false - true - false - 0 - true - - - $(TargetPath) - 2000 - - Auto - - false - /home/pi/projects/amiberry/$(TargetFileName) - Remote - false - false - Auto - /usr/local/lib - true - false - false - true - - \ No newline at end of file diff --git a/VisualGDB/Amiberry/Amiberry-Debug.vgdbsettings b/VisualGDB/Amiberry/Amiberry-Debug.vgdbsettings deleted file mode 100644 index 08b64089..00000000 --- a/VisualGDB/Amiberry/Amiberry-Debug.vgdbsettings +++ /dev/null @@ -1,201 +0,0 @@ - - - Debug - - - - MinGWUnixSlash - - - rpi4 - SSH - pi - - - false - - None - - $(ProjectDir) - /tmp/VisualGDB/$(ProjectDirUnixStyle) - - *.cpp - *.h - *.hpp - *.c - *.cc - *.cxx - *.mak - Makefile - *.txt - *.cmake - - true - true - - false - true - - false - false - false - false - false - $(ProjectDir) - - - - - com.visualgdb.raspberry_pi - - 8.3.0 - 8.2.1 - 1 - - - Amiberry.vcxproj - - - - - 1 - true - - - - - - - - - - - - - Default - - - - true - - - - - False - - - - - true - false - - Enabled - true - true - true - - - - - ClangFormat - - - true - - core.builtin.BuiltinFunctions - core.builtin.NoReturnFunctions - core.CallAndMessage - core.DivideZero - core.DynamicTypePropagation - core.NonNullParamChecker - core.NullDereference - core.StackAddressEscape - core.UndefinedBinaryOperatorResult - core.uninitialized.ArraySubscript - core.uninitialized.Assign - core.uninitialized.Branch - core.uninitialized.CapturedBlockVariable - core.uninitialized.UndefReturn - core.VLASize - cplusplus.NewDelete - cplusplus.NewDeleteLeaks - deadcode.DeadStores - nullability.NullPassedToNonnull - nullability.NullReturnedFromNonnull - security.insecureAPI.getpw - security.insecureAPI.gets - security.insecureAPI.mkstemp - security.insecureAPI.mktemp - security.insecureAPI.UncheckedReturn - security.insecureAPI.vfork - unix.API - unix.cstring.BadSizeArg - unix.cstring.NullArg - unix.Malloc - unix.MallocSizeof - unix.MismatchedDeallocator - unix.Vfork - - - -analyzer-store=region - -analyzer-opt-analyze-nested-blocks - -analyzer-eagerly-assume - - - - VisualGDB\VisualGDBCache - - - - - - - false - true - true - true - true - true - true - true - true - - false - false - false - false - false - false - true - false - None - false - false - main - true - false - true - false - 0 - true - - - $(TargetPath) - 2000 - - Auto - - false - false - /home/pi/projects/amiberry/$(TargetFileName) - Remote - false - false - Auto - /usr/local/lib - true - false - false - true - - \ No newline at end of file diff --git a/VisualGDB/Amiberry/Amiberry-Release-dispmanx.vgdbsettings b/VisualGDB/Amiberry/Amiberry-Release-dispmanx.vgdbsettings deleted file mode 100644 index 326f53db..00000000 --- a/VisualGDB/Amiberry/Amiberry-Release-dispmanx.vgdbsettings +++ /dev/null @@ -1,160 +0,0 @@ - - - Release-dispmanx - - - - MinGWUnixSlash - - - raspad.midlair - SSH - pi - - - false - - None - - $(ProjectDir) - /tmp/VisualGDB/$(ProjectDirUnixStyle) - - *.cpp - *.h - *.hpp - *.c - *.cc - *.cxx - *.mak - Makefile - *.txt - *.cmake - - true - true - - false - true - - false - false - false - false - false - $(ProjectDir) - - - - - com.visualgdb.raspberry_pi - - 8.3.0 - 8.2.1 - 1 - - - Amiberry.vcxproj - - - - - 1 - true - - - - - - - - - - - - - Default - - - - true - - - - - False - - - - - true - false - - Enabled - true - true - true - - - - - - - - false - - - VisualGDB\VisualGDBCache - - - - - - - false - false - false - false - false - false - false - false - false - - false - false - false - false - false - false - true - false - None - false - false - main - true - false - false - false - 0 - true - - - $(TargetPath) - 2000 - - Auto - - false - /home/pi/projects/amiberry/$(TargetFileName) - Remote - false - false - Auto - - true - false - false - false - - \ No newline at end of file diff --git a/VisualGDB/Amiberry/Amiberry-Release.vgdbsettings b/VisualGDB/Amiberry/Amiberry-Release.vgdbsettings deleted file mode 100644 index 0dc253d1..00000000 --- a/VisualGDB/Amiberry/Amiberry-Release.vgdbsettings +++ /dev/null @@ -1,160 +0,0 @@ - - - Release - - - - MinGWUnixSlash - - - raspad.midlair - SSH - pi - - - false - - None - - $(ProjectDir) - /tmp/VisualGDB/$(ProjectDirUnixStyle) - - *.cpp - *.h - *.hpp - *.c - *.cc - *.cxx - *.mak - Makefile - *.txt - *.cmake - - true - true - - false - true - - false - false - false - false - false - $(ProjectDir) - - - - - com.visualgdb.raspberry_pi - - 8.3.0 - 8.2.1 - 1 - - - Amiberry.vcxproj - - - - - 1 - true - - - - - - - - - - - - - Default - - - - true - - - - - False - - - - - true - false - - Enabled - true - true - true - - - - - - - - false - - - VisualGDB\VisualGDBCache - - - - - - - false - false - false - false - false - false - false - false - false - - false - false - false - false - false - false - true - false - None - false - false - main - true - false - true - false - 0 - true - - - $(TargetPath) - 2000 - - Auto - - false - /home/pi/projects/amiberry/$(TargetFileName) - Remote - false - false - Auto - /usr/local/lib - true - false - false - false - - \ No newline at end of file diff --git a/VisualGDB/genblitter/genblitter-Debug.vgdbsettings b/VisualGDB/genblitter/genblitter-Debug.vgdbsettings deleted file mode 100644 index b10d09a2..00000000 --- a/VisualGDB/genblitter/genblitter-Debug.vgdbsettings +++ /dev/null @@ -1,169 +0,0 @@ - - - Debug - - - - MinGWUnixSlash - - - 192.168.1.152 - SSH - pi - - false - false - false - false - false - $(ProjectDir) - - - - com.visualgdb.raspberry_pi - - 6.3.0 - 7.12 - 3 - - - - false - - C:\SysGCC\raspberry\bin - - false - - - MinGWUnixSlash - - Raspberry PI - com.visualgdb.raspberry_pi - C:\SysGCC\raspberry - C:\SysGCC\raspberry\bin\arm-linux-gnueabihf-gcc.exe - C:\SysGCC\raspberry\bin\arm-linux-gnueabihf-g++.exe - C:\SysGCC\raspberry\bin\arm-linux-gnueabihf-gdb.exe - C:\SysGCC\raspberry\bin\arm-linux-gnueabihf-ar.exe - C:\SysGCC\raspberry\bin\arm-linux-gnueabihf-objcopy.exe - C:\SysGCC\raspberry\bin\make.exe - false - - genblitter.vcxproj - - - - LANG - en_US.UTF-8 - - - PATH - C:\SysGCC\raspberry\bin;%PATH% - - - - - 1 - true - - - - - - false - false - false - false - false - false - false - false - false - - false - false - false - false - false - false - true - false - None - false - false - main - true - false - false - false - 0 - - - - - - LANG - en_US.UTF-8 - - - PATH - C:\SysGCC\raspberry\bin;%PATH% - - - - - $(TargetPath) - 2000 - - - false - /home/pi/projects//$(TargetFileName) - Local - false - false - Auto - true - false - - - - - - - - - - - - - Default - - - - true - - - - - False - - - - - true - false - - Enabled - true - true - true - - - - - - false - - - VisualGDB\VisualGDBCache - - \ No newline at end of file diff --git a/VisualGDB/genblitter/genblitter-Release.vgdbsettings b/VisualGDB/genblitter/genblitter-Release.vgdbsettings deleted file mode 100644 index c97ddef0..00000000 --- a/VisualGDB/genblitter/genblitter-Release.vgdbsettings +++ /dev/null @@ -1,161 +0,0 @@ - - - Release - - - - MinGWUnixSlash - - - 192.168.1.152 - SSH - pi - - false - false - false - false - false - $(ProjectDir) - - - - com.visualgdb.raspberry_pi - - 6.3.0 - 7.12 - 3 - - - - false - - C:\SysGCC\raspberry\bin - - false - - - MinGWUnixSlash - - Raspberry PI - com.visualgdb.raspberry_pi - C:\SysGCC\raspberry - C:\SysGCC\raspberry\bin\arm-linux-gnueabihf-gcc.exe - C:\SysGCC\raspberry\bin\arm-linux-gnueabihf-g++.exe - C:\SysGCC\raspberry\bin\arm-linux-gnueabihf-gdb.exe - C:\SysGCC\raspberry\bin\arm-linux-gnueabihf-ar.exe - C:\SysGCC\raspberry\bin\arm-linux-gnueabihf-objcopy.exe - C:\SysGCC\raspberry\bin\make.exe - false - - genblitter.vcxproj - - - - LANG - en_US.UTF-8 - - - PATH - C:\SysGCC\raspberry\bin;%PATH% - - - - - 1 - true - - - - - - - - - - - - - Default - - - - true - - - - - Unknown - - true - false - - - - - false - - - VisualGDB\VisualGDBCache - - - - - - - false - false - false - false - false - false - false - false - false - - false - false - false - false - false - false - true - false - None - false - false - main - true - false - false - false - 0 - - - - - - LANG - en_US.UTF-8 - - - PATH - C:\SysGCC\raspberry\bin;%PATH% - - - - - $(TargetPath) - 2000 - - - false - /home/pi/projects//$(TargetFileName) - Local - false - false - Auto - true - false - - \ No newline at end of file diff --git a/VisualGDB/genlinetoscr/genlinetoscr-Debug.vgdbsettings b/VisualGDB/genlinetoscr/genlinetoscr-Debug.vgdbsettings deleted file mode 100644 index 2498b640..00000000 --- a/VisualGDB/genlinetoscr/genlinetoscr-Debug.vgdbsettings +++ /dev/null @@ -1,169 +0,0 @@ - - - Debug - - - - MinGWUnixSlash - - - 192.168.1.152 - SSH - pi - - false - false - false - false - false - $(ProjectDir) - - - - com.visualgdb.raspberry_pi - - 6.3.0 - 7.12 - 3 - - - - false - - C:\SysGCC\raspberry\bin - - false - - - MinGWUnixSlash - - Raspberry PI - com.visualgdb.raspberry_pi - C:\SysGCC\raspberry - C:\SysGCC\raspberry\bin\arm-linux-gnueabihf-gcc.exe - C:\SysGCC\raspberry\bin\arm-linux-gnueabihf-g++.exe - C:\SysGCC\raspberry\bin\arm-linux-gnueabihf-gdb.exe - C:\SysGCC\raspberry\bin\arm-linux-gnueabihf-ar.exe - C:\SysGCC\raspberry\bin\arm-linux-gnueabihf-objcopy.exe - C:\SysGCC\raspberry\bin\make.exe - false - - genlinetoscr.vcxproj - - - - LANG - en_US.UTF-8 - - - PATH - C:\SysGCC\raspberry\bin;%PATH% - - - - - 1 - true - - - - - - false - false - false - false - false - false - false - false - false - - false - false - false - false - false - false - true - false - None - false - false - main - true - false - false - false - 0 - - - - - - LANG - en_US.UTF-8 - - - PATH - C:\SysGCC\raspberry\bin;%PATH% - - - - - $(TargetPath) - 2000 - - - false - /home/pi/projects//$(TargetFileName) - Local - false - false - Auto - true - false - - - - - - - - - - - - - Default - - - - true - - - - - False - - - - - true - false - - Enabled - true - true - true - - - - - - false - - - VisualGDB\VisualGDBCache - - \ No newline at end of file diff --git a/VisualGDB/genlinetoscr/genlinetoscr-Release.vgdbsettings b/VisualGDB/genlinetoscr/genlinetoscr-Release.vgdbsettings deleted file mode 100644 index e213ab69..00000000 --- a/VisualGDB/genlinetoscr/genlinetoscr-Release.vgdbsettings +++ /dev/null @@ -1,161 +0,0 @@ - - - Release - - - - MinGWUnixSlash - - - 192.168.1.152 - SSH - pi - - false - false - false - false - false - $(ProjectDir) - - - - com.visualgdb.raspberry_pi - - 6.3.0 - 7.12 - 3 - - - - false - - C:\SysGCC\raspberry\bin - - false - - - MinGWUnixSlash - - Raspberry PI - com.visualgdb.raspberry_pi - C:\SysGCC\raspberry - C:\SysGCC\raspberry\bin\arm-linux-gnueabihf-gcc.exe - C:\SysGCC\raspberry\bin\arm-linux-gnueabihf-g++.exe - C:\SysGCC\raspberry\bin\arm-linux-gnueabihf-gdb.exe - C:\SysGCC\raspberry\bin\arm-linux-gnueabihf-ar.exe - C:\SysGCC\raspberry\bin\arm-linux-gnueabihf-objcopy.exe - C:\SysGCC\raspberry\bin\make.exe - false - - genlinetoscr.vcxproj - - - - LANG - en_US.UTF-8 - - - PATH - C:\SysGCC\raspberry\bin;%PATH% - - - - - 1 - true - - - - - - - - - - - - - Default - - - - true - - - - - Unknown - - true - false - - - - - false - - - VisualGDB\VisualGDBCache - - - - - - - false - false - false - false - false - false - false - false - false - - false - false - false - false - false - false - true - false - None - false - false - main - true - false - false - false - 0 - - - - - - LANG - en_US.UTF-8 - - - PATH - C:\SysGCC\raspberry\bin;%PATH% - - - - - $(TargetPath) - 2000 - - - false - /home/pi/projects//$(TargetFileName) - Local - false - false - Auto - true - false - - \ No newline at end of file diff --git a/VisualGDB/guisan/guisan-Debug.vgdbsettings b/VisualGDB/guisan/guisan-Debug.vgdbsettings deleted file mode 100644 index b3ceae52..00000000 --- a/VisualGDB/guisan/guisan-Debug.vgdbsettings +++ /dev/null @@ -1,151 +0,0 @@ - - - Debug - - - - Unknown - - - None - - - false - - None - - $(ProjectDir) - /tmp/VisualGDB/$(ProjectDirUnixStyle) - - *.cpp - *.h - *.hpp - *.c - *.cc - *.cxx - *.mak - Makefile - *.txt - *.cmake - - true - true - - false - true - - false - false - false - false - false - $(ProjectDir) - - - - com.visualgdb.raspberry_pi - - 8.3.0 - 8.2.1 - 1 - - - guisan.vcxproj - - - - 1 - true - - - - - - - - - - - - - Default - - - - true - - - - - False - - - - - true - false - - Enabled - true - true - true - - - - - - - - false - - - VisualGDB\VisualGDBCache - - - - - - - false - false - false - false - false - false - false - false - false - - false - false - false - false - false - false - true - false - None - false - false - main - true - false - false - false - 0 - - - $(TargetPath) - 2000 - - - false - /home/pi/projects/amiberry/$(TargetFileName) - Local - false - false - Auto - true - false - - \ No newline at end of file diff --git a/VisualGDB/guisan/guisan-Release.vgdbsettings b/VisualGDB/guisan/guisan-Release.vgdbsettings deleted file mode 100644 index d98ba331..00000000 --- a/VisualGDB/guisan/guisan-Release.vgdbsettings +++ /dev/null @@ -1,140 +0,0 @@ - - - Release - - - - Unknown - - - None - - - false - - None - - $(ProjectDir) - /tmp/VisualGDB/$(ProjectDirUnixStyle) - - *.cpp - *.h - *.hpp - *.c - *.cc - *.cxx - *.mak - Makefile - *.txt - *.cmake - - true - true - - false - true - - false - false - false - false - false - $(ProjectDir) - - - - com.visualgdb.raspberry_pi - - 8.3.0 - 8.2.1 - 1 - - - guisan.vcxproj - - - - 1 - true - - - - - - - - - - - - - Default - - - - true - - - - - Unknown - - true - false - - - - - false - - - VisualGDB\VisualGDBCache - - - - - - - false - false - false - false - false - false - false - false - false - - false - false - false - false - false - false - true - false - None - false - false - main - true - false - false - false - 0 - - - $(TargetPath) - 2000 - - - false - /home/pi/projects/amiberry/$(TargetFileName) - Local - false - false - Auto - true - false - - \ No newline at end of file diff --git a/src/osdep/gui/PanelCustom.cpp b/src/osdep/gui/PanelCustom.cpp index 96a1d4a6..d0bac120 100644 --- a/src/osdep/gui/PanelCustom.cpp +++ b/src/osdep/gui/PanelCustom.cpp @@ -545,8 +545,8 @@ void RefreshPanelCustom(void) // update the joystick port , and disable those which are not available char tmp[255]; - if (changed_prefs.jports[SelectedPort].id >= JSEM_JOYS + num_keys_as_joys && changed_prefs.jports[SelectedPort].id < - JSEM_MICE - 1) + if (changed_prefs.jports[SelectedPort].id >= JSEM_JOYS + num_keys_as_joys + && changed_prefs.jports[SelectedPort].id < JSEM_MICE - 1) { const auto hostjoyid = changed_prefs.jports[SelectedPort].id - JSEM_JOYS - num_keys_as_joys; strncpy(tmp, SDL_JoystickNameForIndex(hostjoyid), 255);