Commit Graph

66 Commits

Author SHA1 Message Date
Eric J. Korpela 7450ffd910 There was a problem using dynamic allocations (with new) in many of the
graphics classes.  In many places the code was written assuming default values
of 0, especially for pointers and booleans.  While that's true in the case of
a static instance with the default constructors, it not generally true with
dynamic allocation unless the default constructor is replaced.  Therefore I've
added constructors in the following classes/structs:  MOVING_TEXT_PANEL, COLOR,
PROGRESS, PROGRESS_2D, TEXTURE_DESC, REDUCED_ARRAY.

This will be a problem is any are used from C code unless the constructors
declarations are enclosed in "#ifdef __cplusplus" blocks.

There was also a problem that showed up under Windows when dynamic allocations
were used.  app_graphics_resize() gets called before app_graphics_init().  This
usually results in a crash since classes haven't yet been constructed.  To work
around this I've added a case for WM_CREATE in the WndProc() which calls
app_graphics_init.  Under windows this will get passed before WM_SIZE does.

svn path=/trunk/boinc/; revision=5395
2005-02-11 02:15:20 +00:00
Bruce Allen f31b244f90 Modified CVS id strings. After some fussing with different versions
of gcc to try and force them to not complain with -Wall but to always
include this, I decided to take a simpler approach.  All these strings
now have global linkage.  To prevent namespace conflicts they all
have different names.  For the record, the variable extension is a hash made of the first ten characters of the md5sum of the file path, eg:
    md5hash=`boinc/api/x_opengl.C | md5sum | cut -c 1-10`

svn path=/trunk/boinc/; revision=4979
2005-01-02 18:29:53 +00:00
David Anderson 308a867493 *** empty log message ***
svn path=/trunk/boinc/; revision=4940
2004-12-26 06:08:11 +00:00
Rom Walton ab98339572 *** empty log message ***
svn path=/trunk/boinc/; revision=4900
2004-12-19 04:27:02 +00:00
David Anderson 3db69edb05 *** empty log message ***
svn path=/trunk/boinc/; revision=4844
2004-12-14 19:23:46 +00:00
Bruce Allen a24afe2b67 Moved RCSID strings to the end of all .c, .C and .cpp files as per
David's request.

svn path=/trunk/boinc/; revision=4787
2004-12-08 00:40:19 +00:00
Rom Walton 8fc9c72171 *** empty log message ***
svn path=/trunk/boinc/; revision=4614
2004-11-21 04:18:26 +00:00
Bruce Allen 45525eade1 - Added static volatile const char *BOINCrcsid="$Id$"; string to
the top of all .C files.  This means that 'string' or 'ident'
run on an executable will tell you the exact file versions used
in building it, since CVS replaces $Id$ with a complete version ID
string.  Declaration is volatile so that the compiler won't remove
it even under agressive optimizations.

svn path=/trunk/boinc/; revision=4610
2004-11-20 07:32:32 +00:00
Rom Walton e8d025e215 *** empty log message ***
svn path=/trunk/boinc/; revision=4591
2004-11-18 06:57:37 +00:00
Rom Walton 2016961b3f *** empty log message ***
svn path=/trunk/boinc/; revision=4590
2004-11-18 06:38:30 +00:00
Rom Walton 62313de3b0 *** empty log message ***
svn path=/trunk/boinc/; revision=4588
2004-11-18 04:52:34 +00:00
Rom Walton dd3a9d06c9 *** empty log message ***
svn path=/trunk/boinc/; revision=4587
2004-11-18 04:09:10 +00:00
Rom Walton 960158bb84 *** empty log message ***
svn path=/trunk/boinc/; revision=4585
2004-11-18 01:52:07 +00:00
Rom Walton 17594cc118 *** empty log message ***
svn path=/trunk/boinc/; revision=4581
2004-11-17 20:06:44 +00:00
David Anderson 52da590b2d *** empty log message ***
svn path=/trunk/boinc/; revision=4580
2004-11-17 19:19:26 +00:00
Rom Walton 68586de632 *** empty log message ***
svn path=/trunk/boinc/; revision=4577
2004-11-17 09:27:06 +00:00
Rom Walton 83f2718d9b *** empty log message ***
svn path=/trunk/boinc/; revision=4561
2004-11-15 06:44:50 +00:00
Rom Walton 369fe9f965 *** empty log message ***
svn path=/trunk/boinc/; revision=4554
2004-11-14 08:29:32 +00:00
David Anderson 62c59a93cd *** empty log message ***
svn path=/trunk/boinc/; revision=4316
2004-10-11 23:57:07 +00:00
David Anderson 64c16988e0 *** empty log message ***
svn path=/trunk/boinc/; revision=3900
2004-07-19 19:40:06 +00:00
David Anderson 23ced2dce4 *** empty log message ***
svn path=/trunk/boinc/; revision=3898
2004-07-18 04:41:27 +00:00
Daniel Hsu 6f658cf837 *** empty log message ***
svn path=/trunk/boinc/; revision=3896
2004-07-16 21:10:15 +00:00
Karl Chen d6f5332131 *** empty log message ***
svn path=/trunk/boinc/; revision=3825
2004-07-09 15:12:17 +00:00
David Anderson 088cf484ca *** empty log message ***
svn path=/trunk/boinc/; revision=3812
2004-07-08 03:38:52 +00:00
David Anderson b3c3c60721 *** empty log message ***
svn path=/trunk/boinc/; revision=3620
2004-06-17 00:05:18 +00:00
David Anderson 4b36adeea6 *** empty log message ***
svn path=/trunk/boinc/; revision=3544
2004-06-12 05:10:54 +00:00
David Anderson 2de0f5a1bb *** empty log message ***
svn path=/trunk/boinc/; revision=3460
2004-05-27 23:46:07 +00:00
David Anderson 4add3da6fa *** empty log message ***
svn path=/trunk/boinc/; revision=3459
2004-05-27 20:44:33 +00:00
David Anderson 9cc219bead *** empty log message ***
svn path=/trunk/boinc/; revision=3364
2004-05-11 05:32:08 +00:00
David Anderson 74fbc08cb4 *** empty log message ***
svn path=/trunk/boinc/; revision=3208
2004-04-02 06:04:16 +00:00
David Anderson 1e543ac33f *** empty log message ***
svn path=/trunk/boinc/; revision=3201
2004-04-01 06:52:42 +00:00
Rom Walton 8ff9f243b4 *** empty log message ***
svn path=/trunk/boinc/; revision=3174
2004-03-26 20:32:39 +00:00
Rom Walton 7e61c68526 *** empty log message ***
svn path=/trunk/boinc/; revision=3156
2004-03-24 22:43:10 +00:00
Rom Walton 06c039bb56 *** empty log message ***
svn path=/trunk/boinc/; revision=3034
2004-03-06 09:45:25 +00:00
David Anderson f06d1913a6 *** empty log message ***
svn path=/trunk/boinc/; revision=2956
2004-02-04 20:55:04 +00:00
David Anderson 7f9c68538c *** empty log message ***
svn path=/trunk/boinc/; revision=2924
2004-01-23 19:03:40 +00:00
David Anderson 52cdd2188a *** empty log message ***
svn path=/trunk/boinc/; revision=2909
2004-01-19 19:14:59 +00:00
David Anderson 83e3cd509d *** empty log message ***
svn path=/trunk/boinc/; revision=2902
2004-01-17 18:36:17 +00:00
David Anderson 83f6d045f7 *** empty log message ***
svn path=/trunk/boinc/; revision=2636
2003-11-06 20:27:07 +00:00
David Anderson 5e2bc9d74b *** empty log message ***
svn path=/trunk/boinc/; revision=2614
2003-10-31 22:37:46 +00:00
David Anderson 2f20f50ea4 *** empty log message ***
svn path=/trunk/boinc/; revision=2604
2003-10-29 23:22:41 +00:00
David Anderson 973bc92fd6 *** empty log message ***
svn path=/trunk/boinc/; revision=2576
2003-10-27 17:10:48 +00:00
David Anderson ec3423127a *** empty log message ***
svn path=/trunk/boinc/; revision=2564
2003-10-25 20:58:27 +00:00
Oliver Wang 1bda0b0bc0 *** empty log message ***
svn path=/trunk/boinc/; revision=2493
2003-10-16 21:06:10 +00:00
Oliver Wang c04134927e *** empty log message ***
svn path=/trunk/boinc/; revision=2462
2003-10-14 23:04:43 +00:00
David Anderson 631bcab45d *** empty log message ***
svn path=/trunk/boinc/; revision=2457
2003-10-14 20:37:02 +00:00
Oliver Wang 6853fb5acc *** empty log message ***
svn path=/trunk/boinc/; revision=2439
2003-10-10 23:36:19 +00:00
David Anderson e54d920c53 *** empty log message ***
svn path=/trunk/boinc/; revision=2427
2003-10-09 06:00:05 +00:00
Oliver Wang fba99697d5 *** empty log message ***
svn path=/trunk/boinc/; revision=2426
2003-10-09 00:55:38 +00:00
Oliver Wang 350c2fb646 *** empty log message ***
svn path=/trunk/boinc/; revision=2425
2003-10-09 00:21:49 +00:00