1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-17 01:43:03 +01:00
Commit Graph

1288 Commits

Author SHA1 Message Date
jfreegman
bf1e1b73fc
Do proper error handling for a few malloc calls 2021-12-12 11:30:27 -05:00
iphydf
701c0e1e94
cleanup: Reduce the amount of "extern" in .c files.
There is no check at all that the types of externs actually match the
type of the definition. This just accidentally was not a problem, but now
the compiler helps a bit in keeping it that way.
2021-12-11 22:35:51 +00:00
iphydf
71f6a8d4d6
cleanup: Avoid casting away constness from pointers. 2021-12-11 22:22:25 +00:00
jfreegman
1cace1e81d
Do exact length check for string passed to tox_pk_string_to_bytes 2021-12-11 17:13:30 -05:00
jfreegman
3030cda47e
Fix possible null dereference
game invite info needs to be set after calloc in case it fails
2021-12-10 13:44:33 -05:00
jfreegman
2946e0dc56
Zero-init coordinates
Not strictly necessary, but makes static analysis happy
2021-12-10 13:09:47 -05:00
iphydf
da90ca8b74
Fix bazel build for games. 2021-12-10 17:52:43 +00:00
jfreegman
d02ac24de8
Fix regression causing typing notifications to break
Also a small refactor so we use less duplicate code and reduce mutex usage
2021-12-07 22:14:32 -05:00
jfreegman
66e4c590dc
Fix some lazy/incorrect code in cmd_add()
This fixes a rare but possible scenario where a name@domain lookup that's
longer than a tox id won't work. It also fixes custom messages for domain
lookups
2021-12-07 13:27:38 -05:00
jfreegman
e2c8497da9
Cleanup code around tox ID/pk conversion functions 2021-12-06 10:46:19 -05:00
jfreegman
afbd185222
/add command no longer requires quotes around the message 2021-12-06 10:06:49 -05:00
jfreegman
e9a0a30408
Some documentation improvements 2021-12-05 17:03:42 -05:00
jfreegman
8aa57b0539
Fix issue with audio VAD threshold
The default VAD was always being set to 0. We now use the
value provided by the config file if defined
2021-12-05 16:36:13 -05:00
jfreegman
7b734f3996
Make tab completion case sensitive 2021-12-04 16:34:15 -05:00
jfreegman
27e20d6f44
Fix possible buffer overrun in python API 2021-11-26 18:57:40 -05:00
jfreegman
58d0bd0663
Allow empty notes 2021-11-26 09:03:43 -05:00
jfreegman
090fcfffe3
Fix a couple data races 2021-11-26 08:51:38 -05:00
jfreegman
1cba726bb8
Show self connection type and small UI makeover
Connection type is now separated from status in the top status bar
2021-11-25 23:05:33 -05:00
jfreegman
50a074ed22
Remove some unnecessary calls to flag_interface_refresh() 2021-11-21 20:16:02 -05:00
jfreegman
3fddc410b3
Reduce sound notify polling by factor of 10
Polling 100 times per second is excessive. This should help reduce
Toxic's resource usage without a noticable difference to the user.
2021-11-21 14:52:09 -05:00
jfreegman
0a708e4a2e
Make sure conference audio calls are properly flagged
This fixes a bug causing the conference audio noise animations
and indicators from properly displaying
2021-11-20 10:16:47 -05:00
jfreegman
b7002ef3f0
Allow ncurses refresh rate to be set dynamically
This allows us to have a higher refresh rate only when necessary (e.g. games)
2021-11-20 09:49:04 -05:00
jfreegman
1803da85c1
Refactor unread message flagging
This fixes an issue where the interface wasn't able to update
when the unread message flag changed. It also cleans up some
ugly code
2021-11-19 22:54:35 -05:00
jfreegman
f3f81111c8
Greatly reduce redundant window refreshing
This should substantially reduce CPU usage and possibly fix some
issues with interface jittering/flashing
2021-11-19 17:54:35 -05:00
jfreegman
13337041ce
Show friend connection type (UDP/TCP) in friend status bar 2021-11-10 13:27:11 -05:00
Sergei Trofimovich
41e93adbdb game_chess.c: always use "%s"-style format for printf()-style functions
`ncuses-6.3` added printf-style function attributes and now makes
it easier to catch cases when user input is used in palce of format
string when built with CFLAGS=-Werror=format-security:

    toxic/src/game_chess.c:1633:63: error:
      format not a string literal and no format arguments [-Werror=format-security]
     1633 |         mvwprintw(win, board->y_bottom_bound + 2, x_mid, state->status_message);
          |                                                          ~~~~~^~~~~~~~~~~~~~~~

Let's wrap all the missing places with "%s" format.
2021-11-04 09:44:33 +00:00
jfreegman
34b7c0a0d8
Options parsing code cleanup 2021-11-03 16:23:38 -04:00
jfreegman
9e353443c2
Fix outdated help message 2021-08-16 11:14:09 -04:00
jfreegman
d02f3b4acb
Fix a graphical bug with the game border on some terminal emulators 2021-07-27 14:15:36 -04:00
jfreegman
768617a129
Fix small build bug and bump to v0.11.1 2021-06-28 16:04:25 -04:00
jfreegman
8dfd009e0e
Some minor fixes for game module 2021-06-28 13:54:25 -04:00
jfreegman
321f694bb8
Add ability to toggle colours in game of life 2021-06-03 14:45:03 -04:00
jfreegman
4514ecd839
Refactor game window sizing
- Add large square and rectangle window types
- Remove forced small windows
- Fit game of life to largest possible window type
- Hide cursor in game of life when game is running
2021-06-03 01:19:49 -04:00
jfreegman
5e67571908
Implement Conway's Game of Life 2021-06-01 23:00:00 -04:00
jfreegman
c293fbe0c7
Add support for game window notifications 2021-05-24 14:30:29 -04:00
jfreegman
93fb84206d
Bump to version 0.11.0 2021-05-24 14:30:28 -04:00
jfreegman
35aa6922d6
Show previous window instead of Home after closing a window 2021-05-24 14:30:28 -04:00
jfreegman
7abf6388f8
Add ability to compile without game support 2021-05-24 14:30:28 -04:00
jfreegman
7aeb1a0aac
Add networking to game engine / add multiplayer chess 2021-05-24 14:30:27 -04:00
jfreegman
60bdcf0ba5
Begin implementing chess 2021-05-24 14:30:27 -04:00
jfreegman
a623976a0e
Add game module (WIP) 2021-05-24 14:30:26 -04:00
jfreegman
a2f0f298aa
Fix bug showing friends with busy status as online 2021-04-20 13:29:41 -04:00
jfreegman
0fc1d9e994
Add two missing mutex unlocks 2021-03-27 11:50:57 -04:00
jfreegman
80fd3d3b97
Fix buggy behaviour when printing non-ascii characters in Home input field
This line doesn't appear to be doing anything useful - most likely a leftover
from the recent UI overhaul
2021-01-25 22:36:05 -05:00
jfreegman
07a41f9e0b
Show previous window instead of Home after closing a window 2021-01-25 17:09:23 -05:00
jfreegman
f643975941
Fix bug preventing the /clear command from working in Home window 2021-01-23 21:17:46 -05:00
jfreegman
81eb58532e
Fix bug sometimes causing join message spam on conference join 2021-01-17 17:10:10 -05:00
jfreegman
8464ea9a7a
Fix minor display bug with the audio call info box 2021-01-12 19:18:22 -05:00
jfreegman
eb964b64c2
Fix off by one error and comment magic numbers 2020-12-05 20:53:09 -05:00
Lily
2ff9d29491
Custom colors proof of concept
Fix formatting

Fix repeated variable in example config
2020-12-05 17:46:13 -06:00