Commit Graph

48 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
David Anderson 435f8edd47 *** empty log message ***
svn path=/trunk/boinc/; revision=5161
2005-01-20 23:22:22 +00:00
David Anderson b531e42fa9 *** empty log message ***
svn path=/trunk/boinc/; revision=4325
2004-10-13 22:52:37 +00:00
Noaa Avital 30fe7e7c4b *** empty log message ***
svn path=/trunk/boinc/; revision=3935
2004-07-22 00:39:05 +00:00
Karl Chen af36cbcbd8 *** empty log message ***
svn path=/trunk/boinc/; revision=3826
2004-07-09 15:29:18 +00:00
David Anderson 2de0f5a1bb *** empty log message ***
svn path=/trunk/boinc/; revision=3460
2004-05-27 23:46:07 +00:00
David Anderson b111e5e924 *** empty log message ***
svn path=/trunk/boinc/; revision=3385
2004-05-15 22:09:26 +00:00
David Anderson 5e2bc9d74b *** empty log message ***
svn path=/trunk/boinc/; revision=2614
2003-10-31 22:37:46 +00:00
Oliver Wang e5d891334a *** empty log message ***
svn path=/trunk/boinc/; revision=2603
2003-10-29 21:46:00 +00:00
Oliver Wang b08f15a1bd *** empty log message ***
svn path=/trunk/boinc/; revision=2577
2003-10-27 17:44:28 +00:00
Oliver Wang 1bda0b0bc0 *** empty log message ***
svn path=/trunk/boinc/; revision=2493
2003-10-16 21:06:10 +00:00
Karl Chen fed956310f *** empty log message ***
svn path=/trunk/boinc/; revision=2489
2003-10-15 19:08:51 +00:00
David Anderson f22f9db885 *** empty log message ***
svn path=/trunk/boinc/; revision=2464
2003-10-15 00:01:58 +00:00
David Anderson 2f229d2f54 *** empty log message ***
svn path=/trunk/boinc/; revision=2463
2003-10-14 23:40:50 +00:00
Oliver Wang 3ebef2da78 *** empty log message ***
svn path=/trunk/boinc/; revision=2461
2003-10-14 22:53:30 +00:00
Oliver Wang 36f0dd7a3c *** empty log message ***
svn path=/trunk/boinc/; revision=2460
2003-10-14 22:52:41 +00:00
Oliver Wang 93065d424d *** empty log message ***
svn path=/trunk/boinc/; revision=2459
2003-10-14 22:51:48 +00:00
Oliver Wang 43e54a347d *** empty log message ***
svn path=/trunk/boinc/; revision=2458
2003-10-14 22:30:52 +00:00
Oliver Wang 670cd036b9 *** empty log message ***
svn path=/trunk/boinc/; revision=2455
2003-10-14 00:16:38 +00:00
Oliver Wang 6853fb5acc *** empty log message ***
svn path=/trunk/boinc/; revision=2439
2003-10-10 23:36:19 +00:00
David Anderson a6e2cf31a5 *** empty log message ***
svn path=/trunk/boinc/; revision=2436
2003-10-10 18:00:35 +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
David Anderson 154cc43982 *** empty log message ***
svn path=/trunk/boinc/; revision=2423
2003-10-08 18:15:14 +00:00
David Anderson cff7da2611 *** empty log message ***
svn path=/trunk/boinc/; revision=2414
2003-10-06 16:10:33 +00:00
David Anderson a90af17b77 *** empty log message ***
svn path=/trunk/boinc/; revision=2413
2003-10-05 21:30:00 +00:00
David Anderson e12769149f graphics stuff
svn path=/trunk/boinc/; revision=2410
2003-10-05 05:26:59 +00:00
Oliver Wang a3a4716946 started moving graphics configurability to S@H
svn path=/trunk/boinc/; revision=2409
2003-10-03 22:51:28 +00:00
Oliver Wang ca4aee5e1d removed windows dependencies
svn path=/trunk/boinc/; revision=2394
2003-10-03 00:44:25 +00:00
Oliver Wang be95b0e165 now using jpeglib source, not library
svn path=/trunk/boinc/; revision=2391
2003-10-02 20:22:03 +00:00
Oliver Wang fb2809956f *** empty log message ***
svn path=/trunk/boinc/; revision=2379
2003-09-30 00:16:42 +00:00
Oliver Wang 43417fe65d *** empty log message ***
svn path=/trunk/boinc/; revision=2378
2003-09-29 18:34:09 +00:00
Oliver Wang efe576d174 *** empty log message ***
svn path=/trunk/boinc/; revision=2367
2003-09-26 20:10:45 +00:00
Oliver Wang 0a1a101649 *** empty log message ***
svn path=/trunk/boinc/; revision=2352
2003-09-23 22:29:21 +00:00
Oliver Wang ca88f30ad1 *** empty log message ***
svn path=/trunk/boinc/; revision=2351
2003-09-23 19:53:30 +00:00
Oliver Wang e109339306 *** empty log message ***
svn path=/trunk/boinc/; revision=2346
2003-09-22 22:22:20 +00:00
Oliver Wang 9bc73e38ba windows text and alternate rendering methods
svn path=/trunk/boinc/; revision=2338
2003-09-18 23:55:11 +00:00
Oliver Wang 606e797e25 image support added for jpg, bmp and ppm
svn path=/trunk/boinc/; revision=2337
2003-09-17 23:17:09 +00:00
Oliver Wang 1846da73d4 added preliminary windows font support
svn path=/trunk/boinc/; revision=2333
2003-09-16 23:45:29 +00:00
Oliver Wang d1341edcec Added code for stars to Astropulse client
Added support for draw_rotated_text
Changed axes drawing methods

svn path=/trunk/boinc/; revision=2321
2003-09-10 23:44:46 +00:00
David Anderson 636bb2ce04 license change
svn path=/trunk/boinc/; revision=1629
2003-07-01 20:37:09 +00:00
Tim Lan a7149c4596 *** empty log message ***
svn path=/trunk/boinc/; revision=1525
2003-06-17 22:57:47 +00:00
David Anderson 9844f440f4 user-specified files in app versions
svn path=/trunk/boinc/; revision=1219
2003-05-20 00:03:39 +00:00
Eric Heien 928ea8391b graphics util changes
svn path=/trunk/boinc/; revision=1118
2003-03-30 23:27:22 +00:00
Eric Heien 1c109773cf ppm support
svn path=/trunk/boinc/; revision=1111
2003-03-28 18:30:39 +00:00
Eric Heien 6970d97da1 new graphics utilities
svn path=/trunk/boinc/; revision=1109
2003-03-27 18:20:25 +00:00
Eric Heien cf3fb8b36f graphics files added
svn path=/trunk/boinc/; revision=842
2003-01-29 21:13:15 +00:00