]> git.rm.cloudns.org Git - xonotic/netradiant.git/log
xonotic/netradiant.git
3 years agomainframe: request texture browser to show all or common textures on VFS refresh
Thomas Debesse [Sat, 2 Oct 2021 01:13:51 +0000 (03:13 +0200)]
mainframe: request texture browser to show all or common textures on VFS refresh

3 years agocmake: fix gtkglex build configuration issues
Thomas Debesse [Thu, 21 Oct 2021 12:11:32 +0000 (14:11 +0200)]
cmake: fix gtkglex build configuration issues

3 years agoMerge branch 'focus-ok-button' into 'master'
Thomas Debesse [Mon, 8 Nov 2021 22:22:20 +0000 (22:22 +0000)]
Merge branch 'focus-ok-button' into 'master'

Focus "ok" button on modal windows by default

See merge request xonotic/netradiant!186

3 years agoMerge branch 'dds' into 'master'
Thomas Debesse [Mon, 8 Nov 2021 22:21:39 +0000 (22:21 +0000)]
Merge branch 'dds' into 'master'

radiant: also list images from dds/textures/ as textures/ ones, <3 Ballerburg

See merge request xonotic/netradiant!185

3 years agoradiant: also list images from dds/textures/ as textures/ ones
Thomas Debesse [Fri, 27 Aug 2021 23:12:42 +0000 (01:12 +0200)]
radiant: also list images from dds/textures/ as textures/ ones

3 years agogamepack-manager: fix Kingpin gamepack download url
Thomas Debesse [Tue, 2 Nov 2021 16:40:46 +0000 (17:40 +0100)]
gamepack-manager: fix Kingpin gamepack download url

3 years agoradiant/layouts: add a single-window layout
Thomas Debesse [Wed, 29 Sep 2021 23:37:09 +0000 (01:37 +0200)]
radiant/layouts: add a single-window layout

3 years agoFocus "ok" button on modal windows by default
Antoine Fontaine [Wed, 29 Sep 2021 13:56:56 +0000 (15:56 +0200)]
Focus "ok" button on modal windows by default

3 years agodaemonmap: sync submodule
Thomas Debesse [Wed, 29 Sep 2021 13:44:30 +0000 (15:44 +0200)]
daemonmap: sync submodule

3 years agogtkglext: some fixes and improvements
Thomas Debesse [Wed, 29 Sep 2021 13:42:57 +0000 (15:42 +0200)]
gtkglext: some fixes and improvements

3 years agoradiant: ask user to restart the editor when map load switches the brush format
Thomas Debesse [Fri, 27 Aug 2021 21:25:25 +0000 (23:25 +0200)]
radiant: ask user to restart the editor when map load switches the brush format

3 years agoMerge branch 'iqm' into 'master'
Thomas Debesse [Tue, 10 Aug 2021 04:56:30 +0000 (04:56 +0000)]
Merge branch 'iqm' into 'master'

add IQM format support into lib/picomodel

See merge request xonotic/netradiant!184

3 years agoadd IQM format support into lib/picomodel
Marco Hladik [Thu, 29 Jul 2021 15:44:53 +0000 (17:44 +0200)]
add IQM format support into lib/picomodel

This is a combination of 2 commits.

- add IQM format support into lib/picomodel
  https://github.com/TTimo/GtkRadiant/commit/3408871d79d51b9bf27f0098cd3bc4edd92b105d
- Merge illwieckz their portability fix
  https://github.com/TTimo/GtkRadiant/commit/be993ad4222fc9fc28080a8ba8f962da82c7b1f4

See https://github.com/TTimo/GtkRadiant/pull/668

3 years agoplugins: delete iqmmodel, picomodel will implement iqm instead
Thomas Debesse [Fri, 30 Jul 2021 02:56:18 +0000 (04:56 +0200)]
plugins: delete iqmmodel, picomodel will implement iqm instead

3 years agoradiant: add entries to increase and decrease FOV in camera menu
ballerburg9005 [Thu, 24 Jun 2021 22:58:54 +0000 (00:58 +0200)]
radiant: add entries to increase and decrease FOV in camera menu

3 years agoradiant: make camera FOV modifiable and add slider in preferences
ballerburg9005 [Thu, 24 Jun 2021 22:31:28 +0000 (00:31 +0200)]
radiant: make camera FOV modifiable and add slider in preferences

3 years agoradiant: Increase the far-clip distance
ballerburg9005 [Thu, 24 Jun 2021 22:31:28 +0000 (00:31 +0200)]
radiant: Increase the far-clip distance

3 years agoq3map2: increase VFS_MAXDIRS because multiple pakpaths with many pk3dirs can lead...
Thomas Debesse [Wed, 16 Jun 2021 20:31:06 +0000 (22:31 +0200)]
q3map2: increase VFS_MAXDIRS because multiple pakpaths with many pk3dirs can lead to high list of VFS directories

3 years agoMerge branch 'gtk3' into 'master' 10/merge
Thomas Debesse [Mon, 3 May 2021 23:10:42 +0000 (23:10 +0000)]
Merge branch 'gtk3' into 'master'

Disable wayland backend on Linux and BSD

See merge request xonotic/netradiant!178

3 years agovarious: readability improvements
Antoine Fontaine [Sun, 28 Mar 2021 15:03:10 +0000 (17:03 +0200)]
various: readability improvements

3 years agovarious: drop dead code
Antoine Fontaine [Sun, 28 Mar 2021 14:15:09 +0000 (16:15 +0200)]
various: drop dead code

3 years agoradiant/brush: use std::shared_ptr
Antoine Fontaine [Sun, 28 Mar 2021 11:49:11 +0000 (13:49 +0200)]
radiant/brush: use std::shared_ptr

3 years agoCorrect IMPL call
Antoine Fontaine [Sat, 27 Mar 2021 18:45:47 +0000 (19:45 +0100)]
Correct IMPL call

3 years agoDisable wayland backend on Linux and BSD
Antoine Fontaine [Fri, 26 Mar 2021 18:30:35 +0000 (19:30 +0100)]
Disable wayland backend on Linux and BSD

Better rely on XWayland for now. If someone wants to override it, set
GDK_BACKEND=wayland

3 years agoradiant: replace StringBuffer with std::string
Antoine Fontaine [Tue, 23 Mar 2021 12:19:35 +0000 (13:19 +0100)]
radiant: replace StringBuffer with std::string

3 years agoq3map2/help: only read terminal columns using ioctl on Posix systems
Thomas Debesse [Mon, 3 May 2021 22:46:17 +0000 (00:46 +0200)]
q3map2/help: only read terminal columns using ioctl on Posix systems

It does not work on Windows with MSYS2.

It is verified to work on Linux, FreeBSD and macOS.

3 years agoquake3/help: move away from termcap
Antoine Fontaine [Mon, 3 May 2021 19:52:15 +0000 (21:52 +0200)]
quake3/help: move away from termcap

termcap is old and crusty. terminfo seems more recent (lol), but maybe
we can get away without adding any dependency :)

On my system, no -ltermcap exists. (Well, except a compat one provided
by zsh for some reason.)

3 years agoq3map2/help: some improvements
Thomas Debesse [Mon, 3 May 2021 06:11:39 +0000 (08:11 +0200)]
q3map2/help: some improvements

- add some instructions from https://en.m.wikibooks.org/wiki/Q3Map2/Light
- make sure every comment starts capitalized

3 years agoq3map2/games: fix quakelive home path
Thomas Debesse [Mon, 3 May 2021 05:41:22 +0000 (07:41 +0200)]
q3map2/games: fix quakelive home path

3 years agoq3map2/games: bikeshedding
Thomas Debesse [Mon, 3 May 2021 05:34:11 +0000 (07:34 +0200)]
q3map2/games: bikeshedding

3 years agoq3map2/games: bikeshedding
Thomas Debesse [Mon, 3 May 2021 05:31:09 +0000 (07:31 +0200)]
q3map2/games: bikeshedding

3 years agoq3map2/games: add warsow and warfork
Thomas Debesse [Mon, 3 May 2021 05:26:14 +0000 (07:26 +0200)]
q3map2/games: add warsow and warfork

3 years agoq3map2/help: remove typo
Thomas Debesse [Mon, 3 May 2021 04:57:23 +0000 (06:57 +0200)]
q3map2/help: remove typo

3 years agoq3map2/help: add -help all
Thomas Debesse [Mon, 3 May 2021 04:57:10 +0000 (06:57 +0200)]
q3map2/help: add -help all

3 years agoq3map2/help: read columns from terminal
Thomas Debesse [Mon, 3 May 2021 04:45:05 +0000 (06:45 +0200)]
q3map2/help: read columns from terminal

3 years agoq3map2/help: use a variable for the terminal columns
Thomas Debesse [Mon, 3 May 2021 04:38:39 +0000 (06:38 +0200)]
q3map2/help: use a variable for the terminal columns

3 years agoq3map2/help: list supported games
Thomas Debesse [Mon, 3 May 2021 04:23:06 +0000 (06:23 +0200)]
q3map2/help: list supported games

3 years agoq3map2/games: add openarena, q3rally and worldofpadman
Thomas Debesse [Mon, 3 May 2021 04:01:33 +0000 (06:01 +0200)]
q3map2/games: add openarena, q3rally and worldofpadman

3 years agogamepack-manager: make possible to list and install validated games easily
Thomas Debesse [Mon, 3 May 2021 03:06:18 +0000 (05:06 +0200)]
gamepack-manager: make possible to list and install validated games easily

3 years agonetradiant: detect and add missing ExtraQ3map2Args in build menus
Thomas Debesse [Mon, 3 May 2021 02:17:58 +0000 (04:17 +0200)]
netradiant: detect and add missing ExtraQ3map2Args in build menus

- detect q3map2 and enable ExtraQ3map2Args feature for unmaintained gamepacks

3 years agoq3map2: switch back to fastallocate option name to reduce diff with NRC, keep compati...
Thomas Debesse [Mon, 3 May 2021 01:08:34 +0000 (03:08 +0200)]
q3map2: switch back to fastallocate option name to reduce diff with NRC, keep compatibility with fastlightmapsearch

3 years agogamepack-manager: fetch world of padman gamepack from git
Thomas Debesse [Thu, 15 Apr 2021 12:53:55 +0000 (14:53 +0200)]
gamepack-manager: fetch world of padman gamepack from git

3 years agoimport GCC10 fix by afontain
Antoine Fontaine [Tue, 27 Apr 2021 19:14:13 +0000 (21:14 +0200)]
import GCC10 fix by afontain

See: https://gitlab.com/xonotic/netradiant/-/issues/129#note_544674397

3 years agopicomodel::ase: support standard empty bitmap name 'none' illwieckz/md2
Garux [Mon, 23 Mar 2020 16:55:03 +0000 (19:55 +0300)]
picomodel::ase: support standard empty bitmap name 'none'

3 years agoprevent string overflow in radiant md2 loader
Garux [Fri, 22 Feb 2019 20:31:56 +0000 (23:31 +0300)]
prevent string overflow in radiant md2 loader

3 years ago* picomodel: fix md2 loader
Garux [Fri, 22 Feb 2019 20:29:04 +0000 (23:29 +0300)]
* picomodel: fix md2 loader
duplicates management algorithm isn't as quick, as in old code, but quick nuff + working

3 years agofix some strncpy use
Garux [Sat, 29 Sep 2018 18:34:03 +0000 (21:34 +0300)]
fix some strncpy use

Note by illwieckz: partial cherry-pick, vfsListShaderFiles is missing upstream

3 years ago* picomodel: do some guessings about shader paths to handle more cases out of the...
Garux [Sat, 29 Sep 2018 11:39:10 +0000 (14:39 +0300)]
* picomodel: do some guessings about shader paths to handle more cases out of the box; ones are based on material and diffuse map names:
name w/o path: assume textures are in the folder, where model file is
absolute path or with ..: try to cut at "/models/" or "/textures/" (as if leading to game folders); do previous case, if not
strip extensions and turn slashes to forward ones anytime
* picomodel::obj: fix diffuse map paths loading from .mtl

3 years agopicomodel: white default color of fm, md2 (was one white and rest black)
Garux [Sat, 9 Jun 2018 22:27:49 +0000 (01:27 +0300)]
picomodel: white default color of fm, md2 (was one white and rest black)
unified picoColor_white

3 years agoq3map2: do not leak user temporary paths
Thomas Debesse [Tue, 27 Apr 2021 01:30:54 +0000 (03:30 +0200)]
q3map2: do not leak user temporary paths

do not write in "_q3map2_cmdline" worldspawn entity key user paths like:

  -lightmapdir
  -bspfile
  -prtfile
  -srffile
  -linfile

3 years agoMerge branch 'gcc10' into 'master'
Thomas Debesse [Sat, 24 Apr 2021 01:10:57 +0000 (01:10 +0000)]
Merge branch 'gcc10' into 'master'

GCC10

See merge request xonotic/netradiant!181

3 years agoradiant: also filter subtelhint with “Filter hints” menu, <3 @Viech
Thomas Debesse [Sat, 24 Apr 2021 01:04:39 +0000 (03:04 +0200)]
radiant: also filter subtelhint with “Filter hints” menu, <3 @Viech

3 years agovfs/dpk: properly find the dpkdir, even for maps not in maps/, typically mapmodel...
Thomas Debesse [Sat, 24 Apr 2021 00:33:31 +0000 (02:33 +0200)]
vfs/dpk: properly find the dpkdir, even for maps not in maps/, typically mapmodel sources

3 years agoq3map2/image: also look for images path without extension but with dot in their name
Thomas Debesse [Wed, 7 Apr 2021 04:44:00 +0000 (06:44 +0200)]
q3map2/image: also look for images path without extension but with dot in their name

make sure that if a shader contains path to textures/directory/some.thing
q3map2 also look for textures/directory/some.thing.tga
instead of only looking for textures/directory/some.tga

3 years agoFix possible security vulnerability and fatal error
Antoine Fontaine [Wed, 14 Apr 2021 21:44:28 +0000 (23:44 +0200)]
Fix possible security vulnerability and fatal error

3 years agoFix cast warning
Antoine Fontaine [Tue, 30 Mar 2021 18:26:34 +0000 (20:26 +0200)]
Fix cast warning

3 years agofix include
Antoine Fontaine [Wed, 31 Mar 2021 19:19:14 +0000 (21:19 +0200)]
fix include

3 years agomacos: add --debug option to NetRadiant build to run with lldb
Thomas Debesse [Thu, 25 Mar 2021 22:42:04 +0000 (23:42 +0100)]
macos: add --debug option to NetRadiant build to run with lldb

3 years agocmake: PIE linux debug build
Thomas Debesse [Sun, 28 Mar 2021 00:30:16 +0000 (01:30 +0100)]
cmake: PIE linux debug build

3 years agocmake: reuse already defined variables
Thomas Debesse [Sun, 28 Mar 2021 15:53:16 +0000 (17:53 +0200)]
cmake: reuse already defined variables

3 years agoradiant/console: rename Sys_LogFile to Sys_EnableLogFile
Antoine Fontaine [Mon, 22 Mar 2021 01:30:26 +0000 (02:30 +0100)]
radiant/console: rename Sys_LogFile to Sys_EnableLogFile

3 years agoradiant/console: make logging thread-safe
Antoine Fontaine [Mon, 22 Mar 2021 01:10:47 +0000 (02:10 +0100)]
radiant/console: make logging thread-safe

3 years agolibs/gtkutil/glwidget: rework a bit shared context GL callbacks
Antoine Fontaine [Sun, 21 Mar 2021 22:13:49 +0000 (23:13 +0100)]
libs/gtkutil/glwidget: rework a bit shared context GL callbacks

This turns 2 global variables into local ones

3 years agogtkgl module: drop
Antoine Fontaine [Sun, 21 Mar 2021 20:45:53 +0000 (21:45 +0100)]
gtkgl module: drop

For some reason we have a gtkGL module from the beginning of the time,
but it's not doing anything, and it's not used anywhere. This removes it.

3 years agoradiant/camwindow, radiant/xywindow: Fix use of uninitialized values
Antoine Fontaine [Tue, 23 Mar 2021 01:54:50 +0000 (02:54 +0100)]
radiant/camwindow, radiant/xywindow: Fix use of uninitialized values

3 years agogtkutil/filechooser: replace Array<char> by std::string
Antoine Fontaine [Tue, 23 Mar 2021 02:38:44 +0000 (03:38 +0100)]
gtkutil/filechooser: replace Array<char> by std::string

3 years agoradiant/preferences: fix memory issue when saving pref
Antoine Fontaine [Tue, 23 Mar 2021 02:35:37 +0000 (03:35 +0100)]
radiant/preferences: fix memory issue when saving pref

Valgrind:

```
==80929== Invalid read of size 2
==80929==    at 0x4842B30: memmove (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==80929==    by 0x43618E: char* std::__copy_move<false, true, std::random_access_iterator_tag>::__copy_m<char>(char const*, char const*, char*) (stl_algobase.h:386)
==80929==    by 0x435ABC: char* std::__copy_move_a<false, char const*, char*>(char const*, char const*, char*) (stl_algobase.h:404)
==80929==    by 0x436131: char* std::__copy_move_a2<false, char const*, char*>(char const*, char const*, char*) (stl_algobase.h:440)
==80929==    by 0x4359BF: char* std::copy<char const*, char*>(char const*, char const*, char*) (stl_algobase.h:474)
==80929==    by 0x59F28C: Array<char, DefaultAllocator<char> >::Array<char const*>(char const*, char const*) (array.h:86)
==80929==    by 0x59A2A0: Preferences_Save_Safe(PreferenceDictionary&, char const*) (preferences.cpp:207)
==80929==    by 0x59C7A2: Preferences_Save() (preferences.cpp:919)
==80929==    by 0x524500: Radiant_Shutdown() (mainframe.cpp:798)
==80929==    by 0x5223FB: main (main.cpp:654)
==80929==  Address 0xba88510 is 0 bytes after a block of size 64 alloc'd
==80929==    at 0x483B723: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==80929==    by 0x483E017: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==80929==    by 0x5272F3F: g_realloc (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.6)
==80929==    by 0x5290003: ??? (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.6)
==80929==    by 0x5290066: g_string_sized_new (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.6)
==80929==    by 0x52905BA: g_string_new (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.6)
==80929==    by 0x59B65A: PrefsDlg::Init() (preferences.cpp:551)
==80929==    by 0x5222A1: main (main.cpp:595)
```

3 years agoradiant/preferences: Remove unused variable
Antoine Fontaine [Sun, 21 Mar 2021 12:20:35 +0000 (13:20 +0100)]
radiant/preferences: Remove unused variable

3 years agovarious: add explicit default contructors
Antoine Fontaine [Sun, 21 Mar 2021 02:51:21 +0000 (03:51 +0100)]
various: add explicit default contructors

3 years agovarious: reindent classes
Antoine Fontaine [Sun, 21 Mar 2021 02:51:11 +0000 (03:51 +0100)]
various: reindent classes

3 years agoRevert "gtk3: call ui::process() after gtk_gl_area_queue_render()"
Thomas Debesse [Sun, 21 Mar 2021 20:03:42 +0000 (21:03 +0100)]
Revert "gtk3: call ui::process() after gtk_gl_area_queue_render()"

This reverts commit 95333c891fb8e1ce33241c51ed762a4a9e1f5893.

The default value for gtk_gl_area_set_auto_render is true…
So removing the call setting it to true has no effect.

The ui::process() call was reported to improve performance
when using a multi-window layout and GL texture binds fail
because of no sharing mechanism accross GL contexts. So it's
just dark magic and we may better fix that sharing thing first.

3 years agogtk3: call ui::process() after gtk_gl_area_queue_render()
Thomas Debesse [Sun, 21 Mar 2021 19:05:27 +0000 (20:05 +0100)]
gtk3: call ui::process() after gtk_gl_area_queue_render()

3 years agomacos: process the texture browser redraw as soon as possible when workarounding...
Thomas Debesse [Sun, 21 Mar 2021 18:28:31 +0000 (19:28 +0100)]
macos: process the texture browser redraw as soon as possible when workarounding the not-working hide

3 years agoradiant/texwindow: make glarea redraw code reusable
Thomas Debesse [Sun, 21 Mar 2021 18:15:14 +0000 (19:15 +0100)]
radiant/texwindow: make glarea redraw code reusable

3 years agoradiant/xywindow: make glarea redraw code reusable, force redraw on background selection
Thomas Debesse [Sat, 20 Mar 2021 22:21:03 +0000 (23:21 +0100)]
radiant/xywindow: make glarea redraw code reusable, force redraw on background selection

3 years agocmake/gtkglext: do not override CC
Thomas Debesse [Sat, 20 Mar 2021 14:19:50 +0000 (15:19 +0100)]
cmake/gtkglext: do not override CC

This bring many issues we don't have man power for at this time.

3 years agoeasy-builder: properly discover builtins before building netradiant
Thomas Debesse [Tue, 16 Mar 2021 11:57:33 +0000 (12:57 +0100)]
easy-builder: properly discover builtins before building netradiant

3 years agoEnable auto-redraw of the GLArea on GTK3
Antoine Fontaine [Sun, 21 Mar 2021 01:01:54 +0000 (02:01 +0100)]
Enable auto-redraw of the GLArea on GTK3

Unfortunately, gtk_gl_area_queue_render doesn't seem to do anything, so
this is needed for now.

3 years agoForce legacy GDK backend for GTK3
Antoine Fontaine [Sun, 21 Mar 2021 00:58:56 +0000 (01:58 +0100)]
Force legacy GDK backend for GTK3

3 years agoFix GTK_CRITICAL errors
Antoine Fontaine [Sun, 21 Mar 2021 00:03:58 +0000 (01:03 +0100)]
Fix GTK_CRITICAL errors

3 years agogtkutil/glwidget.cpp: use static
Antoine Fontaine [Sat, 20 Mar 2021 23:40:41 +0000 (00:40 +0100)]
gtkutil/glwidget.cpp: use static

3 years agoradiant/texwindow: Remove g_TextureBrowser
Antoine Fontaine [Wed, 17 Mar 2021 08:26:56 +0000 (09:26 +0100)]
radiant/texwindow: Remove g_TextureBrowser

This global variable initialised some gtk widgets. This static
initialisation happened before main(), and thus before gtk_init().

This caused a segfault in GTK3.

3 years agoAdd missing IMPL() call
Antoine Fontaine [Wed, 17 Mar 2021 08:18:21 +0000 (09:18 +0100)]
Add missing IMPL() call

3 years agoreadme: update macos dependencies
Thomas Debesse [Thu, 11 Mar 2021 08:25:39 +0000 (09:25 +0100)]
readme: update macos dependencies

3 years agogtkutil: fix gtk3 compilation (produced build still doesn't work anyway)
Thomas Debesse [Thu, 11 Mar 2021 08:23:00 +0000 (09:23 +0100)]
gtkutil: fix gtk3 compilation (produced build still doesn't work anyway)

3 years agolibs: remove deprecated non-replaced “register“ storage class
Thomas Debesse [Thu, 11 Mar 2021 05:02:12 +0000 (06:02 +0100)]
libs: remove deprecated non-replaced “register“ storage class

Silent this warning:

- 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register]

This keyword was deprecated in C++11, it is now reserved for future use, and there is no replacement for it.

See also https://stackoverflow.com/a/30809775/9131399

3 years agocmake: OBJC is not passed to gtkglext build tools
Thomas Debesse [Thu, 11 Mar 2021 06:08:25 +0000 (07:08 +0100)]
cmake: OBJC is not passed to gtkglext build tools

3 years agocmake: pass C compiler option to gtkglext build tools
Thomas Debesse [Thu, 11 Mar 2021 06:06:52 +0000 (07:06 +0100)]
cmake: pass C compiler option to gtkglext build tools

3 years agoplugins/shader: remove unused Texture_ForName function declaration
Thomas Debesse [Wed, 10 Mar 2021 17:30:30 +0000 (18:30 +0100)]
plugins/shader: remove unused Texture_ForName function declaration

It looks to be a leftover from QE4.

3 years agoradiant/texwindow: fix a minor typo
Thomas Debesse [Wed, 10 Mar 2021 12:03:06 +0000 (13:03 +0100)]
radiant/texwindow: fix a minor typo

3 years agomacos: workaround the laggy XY/Camera window mouse pointer recentering
Thomas Debesse [Wed, 10 Mar 2021 06:25:34 +0000 (07:25 +0100)]
macos: workaround the laggy XY/Camera window mouse pointer recentering

On macOS, a huge lag occurs when the pointer is recentered.
This happens when calling GTK functions to set the pointer
at the center of the widget so it looks to be a lag in GTK
or in underlayer macOS technology GTK relies on.

When that mouse pointer recenter is disabled, one can drag
infinitely without lag BUT then comes weird bugs because
the “released right mouse button” event is only read when
the mouse is over the widget, so if one releases over
another widget, the mouse pointer is not released
and if one do another right mouse click on another XY widget,
the internal state becomes corrupted and a crash is
expected to happen soon.

So the idea of that workaround is to only reposition
the pointer when an edge of the XY/Camera window is reached,
so the user does not experience lag for the whole size
of the XY window, experiencing the lag only when a
whole dimension is moved. To optimize the distance
the user can move without lag, when an edge is reached
the pointer is repositioned on the opposite edge.

It was noticed the pointer is not hidden on macOS when
moving the map, so the pointer being visible during
all the move operation is not restored to the initial
position when it is released, but keep the position
currently seen by the user at right mouse button release
time.

Note: It was noticed it is possible to esscape the capturing
widnow when the render is slow and framerate is low, it
may also occurs with touch screens (like virtual machines has)
to move the pointer out of the XY/Camera widget and get the
internal state corruption problem.

3 years agoradiant/cursor: get the display from the widget, attempt to support multiple displays...
Thomas Debesse [Wed, 10 Mar 2021 07:08:09 +0000 (08:08 +0100)]
radiant/cursor: get the display from the widget, attempt to support multiple displays and screens

3 years agoradiant/cursor: get/set cursor position from widget instead of window
Thomas Debesse [Wed, 10 Mar 2021 05:03:11 +0000 (06:03 +0100)]
radiant/cursor: get/set cursor position from widget instead of window

3 years agoradiant/cursor: factorise a bit the code
Thomas Debesse [Wed, 10 Mar 2021 05:03:11 +0000 (06:03 +0100)]
radiant/cursor: factorise a bit the code

3 years agorevert 0574802, the glwidget has to not be hidden for the macos hack to work
Thomas Debesse [Wed, 10 Mar 2021 04:07:48 +0000 (05:07 +0100)]
revert 0574802, the glwidget has to not be hidden for the macos hack to work

revert 057480298a2d8b73f1a49c6e8d8d162b09c276d4
and add a comment to make it obvious to future readers

3 years agocmake/gtkglext: rewrite the way it is built
Thomas Debesse [Tue, 9 Mar 2021 13:21:40 +0000 (14:21 +0100)]
cmake/gtkglext: rewrite the way it is built

3 years agomacos: add ssasc to deps, it's required to build the GTK theme
Thomas Debesse [Tue, 9 Mar 2021 04:53:06 +0000 (05:53 +0100)]
macos: add ssasc to deps, it's required to build the GTK theme

3 years agolinux: more knowledge about stripping and non-PIE binaries
Thomas Debesse [Mon, 8 Mar 2021 16:05:28 +0000 (17:05 +0100)]
linux: more knowledge about stripping and non-PIE binaries

3 years agodaemonmap: sync submodule reference
Thomas Debesse [Mon, 8 Mar 2021 14:44:42 +0000 (15:44 +0100)]
daemonmap: sync submodule reference

3 years agolinux: do not strip binaries (does not work well with the non-PIE hack)
Thomas Debesse [Mon, 8 Mar 2021 13:25:43 +0000 (14:25 +0100)]
linux: do not strip binaries (does not work well with the non-PIE hack)