2582 Commits

Author SHA1 Message Date
gewlitys d12a7b7ef9 Fix for memory leak in TFB_DrawCanvas_ExtractPalette (bug #277), from
Richard Braakman


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@900 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-28 17:21:01 +00:00
ghaushe 6271fe0147 Fix bug 256 (array write past bounds)
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@898 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-18 04:31:26 +00:00
gewlitys 0697f1e799 Changed mipmap assigning to use DCQ
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@895 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-17 01:22:04 +00:00
gewlitys 9a829b73ed Fixed possible race with mipmap assigning
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@894 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-17 00:05:10 +00:00
mcmartin 1828f2dcbf fixed some of the Interplanetary crossfade failures
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@893 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-16 23:34:07 +00:00
gewlitys a11f966bd2 Flattened transition_task_func to ScreenTransition() because
additional thread isn't really needed


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@892 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-16 19:15:31 +00:00
mcmartin acc4111de8 Fixed bug #33; Crossfades are consistent and don't glitch anymore
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@891 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-16 18:38:48 +00:00
gewlitys 441ef5c97f minor cleanups continue
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@890 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-16 16:14:05 +00:00
gewlitys 1a6d7a87bd Some minor trilinear cleanups
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@889 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-16 16:11:27 +00:00
meep-eep c5430a207d Bug fixed where the users key config was ignored, because the one in the
content dir was reloaded when the starcon.pkg/starcon.ndx package was loaded.
This 'fix' makes the entry in starcon.ndx invalid. It will be completely
removed when the new resource system is there. For now, you'll receive
a warning "Can't open 'ignored.key'" on startup, which should be ignored.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@888 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-16 10:31:48 +00:00
gewlitys b68e09ae2e Integerized & optimized trilinear scaling
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@887 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-16 03:01:26 +00:00
gewlitys 84bc3cca4b Last interpolation stage of trilinear now uses some mults less
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@886 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-15 23:55:42 +00:00
gewlitys e6a8d4fe7c Melee scaling is now trilinear by default, but it's still possible to
choose nearest neighbour with --meleescale; fixes #34


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@885 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-15 21:40:09 +00:00
gewlitys 7d46626f9a GetScaledExtent truncation prevention now only triggers if original w/h
!= 0


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@883 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-13 14:48:31 +00:00
gewlitys 01569aab89 Prevents GetScaledExtent from truncating values to 0; fixes partially
'small-objects-disappearing-bug' (#34), from chmmravatar


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@882 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-13 14:26:54 +00:00
gewlitys f2d4b4c924 Gamma correction is now only adjusted if --gamma is given (fixes #245),
from chmmravatar


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@881 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-10 16:54:59 +00:00
ghaushe 111d1022ba Clean up memory allocation for planet-rotate code. This will hopefully reduce
fragmentation and make it  easier for the OS to retreive free memory.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@880 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-10 05:22:22 +00:00
gewlitys 876512ef6e Initial ScaledImg creation is now forced even if caching thinks it's not
needed; fixes melee crashes.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@879 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-08 20:16:22 +00:00
gewlitys e2e09d31e7 Removed scale step reduction as surface caching now works fine w/o it
anyway.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@878 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-08 19:18:49 +00:00
ghaushe d490e09467 Planet zoomng now uses GraphicScale, which cleans up a lot of
memory alloc/deallocs
Fixed a big (3.5MB) memory leak in BlurImage


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@877 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-08 18:04:53 +00:00
gewlitys ed9997b9fa removed double initialization of ScaledImg
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@876 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-08 17:12:09 +00:00
gewlitys 8adb141165 ScaledImg now allocated only if it's needed; also removed
TFB_SCALETARGET_FACTOR as redundant


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@875 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-08 17:10:30 +00:00
gewlitys 22c93302e8 fixed obvious typo
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@874 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-08 16:55:30 +00:00
mcmartin f915dbf8a1 Fixed completely idiotic buffer check error. Oops.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@873 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-08 16:48:50 +00:00
gewlitys 627997f3b5 Replaced GetGraphicScaleIdentity() with a define; moved melee scale step
reducing to process.c instead


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@872 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-08 15:50:45 +00:00
gewlitys 3c39c2269c fix win32 compilation
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@871 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-08 15:11:56 +00:00
mcmartin b914bc4070 Removed rotozoom; new sprite-scaler does not touch the heap
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@870 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-08 14:40:55 +00:00
ghaushe df9a72bb49 Planet spins during lander launch and return.
Fix skipping after doing a scan or landing  on the planet
(bug 31, 223)


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@869 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-08 02:18:46 +00:00
ghaushe b638ff774e only update portion of screen that has changed on entering orbit.
This is about the smoothest I know how to make it.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@868 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-08 01:36:35 +00:00
ghaushe c884eb7528 rotating planet should now be smoother than before.
planet zoom while entering orbit decelerates (ala 3DO)


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@867 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-08 00:27:26 +00:00
ghaushe 53b6ea685c do_subtitles no longer tries to draw to the screen, thuscompleting one
more step in themain, audio, and graphics thread seperation.

Thiis also should illiminate all of the subtitle text overlap issues (bug232)


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@866 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-07 17:57:03 +00:00
ghaushe ffddaf54b4 Leave planet-side with 'Esc' key. Matches PC behaviour, and the manual:
If your crew level starts dropping dramatically, flee quickly with the ESCAPE key!

the keys that trigger leaving planetside are button3, left-shift or Esc


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@865 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-07 14:29:41 +00:00
ghaushe 3fd77b1b83 Fix potential race between stopping the rotate_starbase task and
destroying the frame  (bug 230)


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@864 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-07 06:30:40 +00:00
ghaushe 38ad179d23 Cleanup shipyard door animations (fixes 215)
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@863 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-07 05:14:14 +00:00
gewlitys b0d1e3651c Moved image scaling to DCQ thread; fixes scale-out-of-sync problem in
melee. Also reduced number of scaling steps.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@861 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-07 03:04:43 +00:00
ghaushe 161e9fb671 Zoomed planet view no longer abuses ScaledImg.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@857 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-06 01:11:30 +00:00
ghaushe 5d7ebc8e36 Fix for crash during cyborg combat.
fixes 204 and 218 - from chmmravatar


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@856 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-06 00:19:50 +00:00
mcmartin d54438b23f Added -g cmdline option for gamma correction, from chmmravatar
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@855 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-05 23:06:18 +00:00
ghaushe 2b4048bdfa Fix for Fot twitching (fixes bug 217) - from Nic
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@854 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-05 04:49:26 +00:00
gewlitys 26488be769 Yehat subtitle positioning now matches PC version more closely, from Nic
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@853 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-04 18:56:47 +00:00
gewlitys 15459039f5 Fix for VC7 compilation
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@852 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-04 17:09:27 +00:00
mcmartin 7fee7237d2 Fixed up the CondBank so that it uses Condition Variables properly.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@851 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-04 06:49:29 +00:00
mcmartin 46989c4c68 FRAME_DESC.HotSpot is now a POINT instead of a DWORD.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@850 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-04 01:35:50 +00:00
mcmartin 8ddfacdc0a Centralized NULL checking for Stamp drawing.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@849 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-03 05:29:20 +00:00
mcmartin 02856f0cb4 Removed all unused variable/parameter warnings
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@848 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-03 05:17:33 +00:00
mcmartin 02839d47f8 Removed the last vestiges of K&R function declarations, fixing more warnings
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@845 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-03 02:05:39 +00:00
mcmartin 3fab89624a Removed some compiler warnings.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@841 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-03 00:21:05 +00:00
meep-eep b5f7dc11ca Get rid of a warning.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@840 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-01 18:10:32 +00:00
gewlitys cd5a0b86a5 Updated to conform mcmartin's latest changes
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@839 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-01 14:34:17 +00:00
mcmartin 954a333685 Streamlined the 'legacy' graphics code implementation.
The vtable-style code that was implementing the drawing of primitives
turned out to be entirely unnecessary; every virtual call was inside a
switch or if on the type of the primitive.  Code has been restructured to
be more consistent and simpler.  Never-used primitives (composites and
polygons) have been removed entirely.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@838 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-03-01 07:14:15 +00:00