Commit Graph

47 Commits

Author SHA1 Message Date
Vitalii Koshura 1b6fe31e9c
clientscr: fix float <-> double conversion warnings
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2024-09-10 00:57:52 +02:00
Vitalii Koshura 44742026e2
Remove trailing whitespaces. Add CI script to verify in on every commit
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2023-05-05 20:08:17 +02:00
davidpanderson 8b852cb2c9 Win code cleanup; no functional changes
Platform-wide #defines belong in .h files, not .cpp
Also fixed a couple of compiler warnings.
2020-08-31 13:56:15 -07:00
Charlie Fenton 37d0114eb2 Mac default screensaver: don't redirect logs to user's directories. Under Sandbox Security, graphics apps do not have access to user's directories. 2020-05-06 05:37:35 -07:00
Charlie Fenton 7ea4a81865 Mac: Consolidate branding strings in one source file and one header file shared among all files which use them; add checks for missing branding strings. 2018-07-11 03:59:34 -07:00
Jonathan Armstrong c98ee539e5 Code changes needed to add the wcg brand for the mac manager,screen saver,installer 2018-05-23 10:10:02 -05:00
David Anderson ca80cac75a Win build: manage compiler warnings better:
VS lets you choose the compiler warning level, 0 to 4.
Higher is good because compiler warnings often indicate bugs.
However, some warnings are noise, and having a lot of them is bad
because they conceal the important ones.
As an example, a recent update to VS2010 causes it to spew warnings of the form
"function _strdup() is deprecated; use _strdup() instead.

So the new policy is:
- everything compiles with warning level 4
- in boinc_win.h we use #pragmas to suppress 3 specific warnings
  that occur a lot in our code, and are not bugs:
  - the _function names as described above
  - constant conditional expression (like while(1))
  - conversion from int to char

And the goal is to build everything with zero warnings
except from outside code like zip.
We're pretty close to that.

The project files for other VS versions should be modified
to also use level 4 everywhere.
2017-01-27 01:27:32 -08:00
David Anderson 87769d4acb Merge branch 'master' of github.com:BOINC/boinc
Conflicts:
	clientgui/sg_TaskPanel.cpp
2016-02-17 22:55:57 -08:00
David Anderson 1587dbf71a change some sprintf() to snprintf() in lib code 2016-02-17 22:53:37 -08:00
Rom Walton 8b6fc49e1e SCR: Cleanup low hanging fruit with regards to cleaning up sprintf.
Use snprintf instead.
2016-02-17 21:41:20 -05:00
David Anderson 55a998fc01 Fix build errors 2015-01-16 09:29:49 -08:00
Rom Walton eb46872508 SCR: Convert images used by the default screensaver to jpeg. TEXTURE_DESC only decodes jpeg files.
SCR: Fill out logo stuff for WCG and PTP on Windows.
2014-03-20 16:32:32 -04:00
Rom Walton 65c6252a9f SCR: Create a diagnostics log file for the default screensaver app. 2014-03-19 17:55:00 -04:00
David Anderson f25cf0836a Include <cmath> instead of <math.h> various places 2013-05-27 16:44:22 -07:00
Rom Walton 832386c4e0 - SS: Update project files to use FreeType and FTGL on Windows.
api/
        ttfont.cpp, .h
    clientscr/
        ss_app.cpp
    win_build/
        boinc_ss.vcproj
        libgraphics2.vcproj

svn path=/trunk/boinc/; revision=25962
2012-08-03 01:18:20 +00:00
Charlie Fenton 6acb88ca81 API, SCR: Switch from *.txf fonts to TrueType fonts in graphics apps, ensuring that all related files have no licensing issues
svn path=/trunk/boinc/; revision=25939
2012-08-02 06:53:11 +00:00
Charlie Fenton 7b5d9cf07c default screensaver: fix build breaks caused by code cleanup above
svn path=/trunk/boinc/; revision=24656
2011-11-26 11:42:12 +00:00
Charlie Fenton 95a7a3d424 default screensaver: fix build breaks caused by code cleanup above
svn path=/trunk/boinc/; revision=24652
2011-11-26 10:56:56 +00:00
David Anderson f24e361034 - default screensaver: fix divide-by-zero; code cleanup
svn path=/trunk/boinc/; revision=24649
2011-11-25 07:24:18 +00:00
Charlie Fenton af8d165400 Changes for Charity Engine Desktop
svn path=/trunk/boinc/; revision=23964
2011-08-09 00:38:30 +00:00
Charlie Fenton 73e65cd425 work around bug which prevented default screensaver boincscr from communicating with Mac client
svn path=/trunk/boinc/; revision=22450
2010-10-06 09:00:05 +00:00
David Anderson 6e7c91f181 compile fixes
svn path=/trunk/boinc/; revision=20891
2010-03-13 05:42:25 +00:00
David Anderson 9d21389844 compile fixes
svn path=/trunk/boinc/; revision=20888
2010-03-13 04:25:07 +00:00
David Anderson 4054775f35 svn path=/trunk/boinc/; revision=20833 2010-03-11 01:39:14 +00:00
David Anderson 81f44cce52 svn path=/trunk/boinc/; revision=20598 2010-02-16 20:10:13 +00:00
Charlie Fenton 9eca858ac7 ss_app: Allow branding for GR in a cross-platform way; add hi-res GR logo.
svn path=/trunk/boinc/; revision=20358
2010-02-02 12:19:01 +00:00
Kevin Reed 0eafaefa81 Add logic for WCG logo to default screen saver within an ifdef.
svn path=/trunk/boinc/; revision=20347
2010-02-01 19:01:31 +00:00
David Anderson d34cc69d45 - user web: remove "enforced by version X+" for X < 6.0
- screensaver: added some comments

svn path=/trunk/boinc/; revision=19167
2009-09-25 17:39:50 +00:00
David Anderson c7e8891ed6 - SS: remove unused func
svn path=/trunk/boinc/; revision=18444
2009-06-17 23:17:33 +00:00
David Anderson 1acbff19fd - new screensaver: don't show jobs if suspended
svn path=/trunk/boinc/; revision=17646
2009-03-23 17:14:43 +00:00
David Anderson 6a8e754f62 - screensaver: show correct info if CPU throttling;
show correct window title;
		show "no projects" message.

svn path=/trunk/boinc/; revision=17405
2009-02-26 23:32:29 +00:00
Charlie Fenton b4c78c27b4 screensaver: Implement new screensaver coordinator logic as requested by Rom.
svn path=/trunk/boinc/; revision=17322
2009-02-20 11:49:49 +00:00
Charlie Fenton 72e5c0fc0d screensaver: Implement --test and --retry_connect command-line arguments as requested by Rom
svn path=/trunk/boinc/; revision=17321
2009-02-20 02:33:11 +00:00
David Anderson 8b0c7af1bb svn path=/trunk/boinc/; revision=17303 2009-02-19 00:38:34 +00:00
David Anderson b568b7dada - screensaver
svn path=/trunk/boinc/; revision=17302
2009-02-19 00:29:12 +00:00
Charlie Fenton 6d003c8987 ss_app: Fix compiler warning
svn path=/trunk/boinc/; revision=17221
2009-02-12 01:25:03 +00:00
Charlie Fenton 03e8940a8a ss_app: Remove code which adds a Mac icon, restore previous permissions for boinscr
svn path=/trunk/boinc/; revision=17218
2009-02-12 01:19:56 +00:00
David Anderson 508626c053 - screensaver tweaks
svn path=/trunk/boinc/; revision=17217
2009-02-12 01:04:59 +00:00
David Anderson b09db4ce9a - tweak screensaver
svn path=/trunk/boinc/; revision=17205
2009-02-11 16:33:08 +00:00
Charlie Fenton e3a35a4340 ss_app: Fix compiler warning
svn path=/trunk/boinc/; revision=17204
2009-02-11 10:47:06 +00:00
David Anderson 4dfa84da81 svn path=/trunk/boinc/; revision=17199 2009-02-11 00:46:57 +00:00
David Anderson 1fc3722e71 - client: add SCHEDULER_OP::rpc_failed();
this gets called when the op fails, either at initialization or later on;
        it clears the project's sched_rpc_pending flag if needed.
        This fixes a bug that caused user-requested RPCs to retry every 10 seconds
        when the network is down.
    - client: if debt-adjust period is too long, reset accounting.
        Otherwise we'll get this infinitely.
    - API: all optional alpha argument to TEXTURE_DESC::draw()

svn path=/trunk/boinc/; revision=17195
2009-02-10 19:30:59 +00:00
David Anderson 0436973b04 - compile fix
svn path=/trunk/boinc/; revision=17167
2009-02-06 05:37:48 +00:00
Charlie Fenton b3d6f09444 SS: Fix ss_app compile errors on Mac, continue work on screensaver coordinator
svn path=/trunk/boinc/; revision=17163
2009-02-06 02:17:45 +00:00
David Anderson 515de57e76 - screensaver: flesh out new SS a bit
svn path=/trunk/boinc/; revision=17162
2009-02-06 00:29:00 +00:00
Charlie Fenton c6bf99b452 SS: Add ss_app to XCode Project, with a temporary icon
svn path=/trunk/boinc/; revision=17148
2009-02-05 13:37:45 +00:00
David Anderson 455c2f7373 - renamed boinc_ss_opengl to ss_app
svn path=/trunk/boinc/; revision=17131
2009-02-03 19:50:30 +00:00