rubidium
df12937f19
(svn r11839) -Codechange: move some variables from variables.h to a more logical location.
2008-01-13 21:41:24 +00:00
rubidium
90acd52f22
(svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
2008-01-13 01:21:35 +00:00
frosch
7d3ecec5b9
(svn r11813) -Fix [FS#1602]: Switch _screen to the output buffer and disable usage of 32bpp-anim animation buffer during giant screenshots.
2008-01-11 17:12:41 +00:00
rubidium
b09d957f31
(svn r11777) -Codechange: split the string header and make do not include it when it's not necessary.
2008-01-07 14:23:25 +00:00
rubidium
7f037d15d7
(svn r11704) -Codechange: remove another bunch of useless includes.
2007-12-26 23:04:26 +00:00
rubidium
81bf9f8503
(svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
2007-12-25 11:26:07 +00:00
rubidium
00c9d3ef20
(svn r11691) -Codechange: move+rename helpers.hpp and only include it when it is really needed.
2007-12-25 09:48:53 +00:00
rubidium
507463e420
(svn r11684) -Codechange: split gfx.h in a type and functional header.
2007-12-23 10:56:02 +00:00
rubidium
1f6043458c
(svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type.
2007-12-22 23:30:28 +00:00
rubidium
8ebdfb258f
(svn r11674) -Codechange: refactor some functions out of macros.h into more logical locations.
2007-12-21 19:21:21 +00:00
smatz
8d91abdfe3
(svn r11656) -Codechange: add ZOOM_LVL_BEGIN and postfix operators so ZoomLevel can be used in some iterations
2007-12-17 22:04:07 +00:00
smatz
d5dbce8331
(svn r11652) -Codechange: add the svn $ header for several files
2007-12-17 01:35:45 +00:00
glx
15085aa7f4
(svn r11611) -Codechange: it is now possible to use a define to enable asserts and show them in crash.log for MSVC release builds
2007-12-09 21:20:21 +00:00
rubidium
d041e06070
(svn r11169) -Fix [FS#1255]: obiwan in Blitter::Drawline(), which caused it to clip too much at screen/viewport borders. Patch by frosch.
2007-09-26 14:17:26 +00:00
truelight
d146a78f39
(svn r11093) -Fix r11092: also add a DEBUG(driver, 1) if the blitter is loaded, to show which one really loaded
2007-09-13 14:44:49 +00:00
truelight
ca161c8e72
(svn r11092) -Add: allow 'blitter=<value>' in openttd.cfg to set the blitter (so you don't have to keep on doing 'openttd -b 32bpp-optimized'..)
2007-09-13 12:28:53 +00:00
truelight
f055b0b557
(svn r11083) -Fix r11078: don't clear the anim buffer when alpha = 0 (tnx to frosch)
2007-09-10 14:55:46 +00:00
truelight
65aed53cab
(svn r11082) -Fix r11081: save before commit (yeah, whitelines are important too!)
2007-09-10 00:05:27 +00:00
truelight
f97d2b4706
(svn r11081) -Fix r11080: now solved the problem in a pretty way: don't do animation if we are not drawing to the screen-pointer
2007-09-10 00:03:47 +00:00
truelight
e2fe88fb70
(svn r11080) -Fix r11079: fix it, still dirty, correctly, as the last commit was ... wrong ;)
2007-09-09 23:57:47 +00:00
truelight
b823cc2b6b
(svn r11079) -Fix: dirty fix to allow big-screenshots with 32bpp-anim
2007-09-09 23:47:55 +00:00
truelight
f827093ba7
(svn r11078) -Add: added 32bpp-optimized, which is almost twice as fast as 32bpp-simple (based on the work of frosch)
...
-Add: let 32bpp-anim use 32bpp-optimizeds, so he profits from the speed-up too
2007-09-09 23:16:01 +00:00
truelight
3de2c716df
(svn r11076) -Fix: MakeTransparent of 32bpp blitter used 0..100; using 0..255 makes it much faster (frosch)
...
-Fix: ComposeColourXXX could work a tiny bit faster when using 256, not 255 as value to divide with; downside is that it can give alpha errors (frosch)
2007-09-09 21:56:52 +00:00
truelight
1194f227da
(svn r10837) -Fix [FS#1102]: DrawLine didn't bound-check the first pixel that was drawn (frosch)
2007-08-10 13:11:53 +00:00
truelight
68c5bcf960
(svn r10561) -Fix: don't give 'unused variable' warnings when disabling asserts
2007-07-14 20:21:02 +00:00
peter1138
5e85e8c5e0
(svn r10444) -Codechange: switch to c++ classes and inheritance for sound/music/video drivers, using self-registration based on the blitter-model.
2007-07-05 12:23:54 +00:00
peter1138
12302ae8c7
(svn r10412) -Codechange: Remove unnecessary inclusion of hal.h in various files (and add one)
2007-07-03 11:31:38 +00:00
rubidium
926d103482
(svn r10358) -Codechange: remove the cargopacket leakchecker as it never asserted in almost a week of stresstesting, so I'm pretty sure all cornercases are tested by now.
2007-06-27 17:19:05 +00:00
rubidium
4f73e2a030
(svn r10355) -Fix (r10092): memory leak when encoding (reading) sprites.
2007-06-27 16:41:37 +00:00
truelight
c755fa43d0
(svn r10245) -Codechange: added GetName also to all Blitters, instead of only the Factory
2007-06-21 13:56:59 +00:00
truelight
2f0500a438
(svn r10244) -Fix: make sure to let 32bpp-anim report the increased buffer-size it needs
2007-06-21 13:31:41 +00:00
truelight
426de65b18
(svn r10242) -Fix: avoid a segfault if you move your mouse at startup with 32bpp-anim
2007-06-21 12:45:41 +00:00
truelight
d614cec205
(svn r10241) -Codechange: CopyToBuffer now produces a buffer that is unreadable from outside the blitter, so the blitter can store anything he likes
...
-Codechange: added CopyImageToBuffer, which produces a readable buffer for screenshots
-Fix: 32bpp-anim now holds animation on transparent objects to avoid strange graphical effects
-Fix: 32bpp-anim now works correct on mouse-movement (it holds the palette animation correctly)
2007-06-21 12:36:46 +00:00
truelight
59b54b3b02
(svn r10235) -Fix: the 32bpp-anim blitter repainted pixel color 0, which is transparency and therefor should never be repainted (spotted by Rubidium)
2007-06-20 12:09:47 +00:00
truelight
0e4a7125ae
(svn r10234) -Fix r10233: make peter1138 happy
2007-06-20 10:30:25 +00:00
truelight
5eff2951cc
(svn r10233) -Fix: 8bpp-optimized encoder fucked up if 255+ pixels in a row were non-transparent (tnx boekabart)
2007-06-20 10:26:39 +00:00
truelight
9efe1d6776
(svn r10227) -Add: added 32bpp-anim blitter, a 32bpp blitter that does palette animation (at the cost of an animation-buffer to keep track of the 'm'-channel of all sprites)
2007-06-19 17:43:30 +00:00
truelight
bd215277b5
(svn r10225) -Codechange: move common Colour routines for 32bpp to the base class (and nick it colour, not color)
2007-06-19 17:32:01 +00:00
truelight
cd10965a27
(svn r10216) -Fix: palette animation always redid all palette entries, where in fact only a few indexes were needed
...
-Codechange: allow blitters to handle palette animation internally or even disable it; 8bpp uses video-backend for palette animation
2007-06-19 15:04:08 +00:00
truelight
b63c8b8342
(svn r10215) -Fix r10214: forgot 2 cases of the same mistake
2007-06-19 12:19:31 +00:00
truelight
a2b14e718a
(svn r10214) -Fix: off-by-one in draw-rect-color-remapping (peter1138)
2007-06-19 12:18:24 +00:00
truelight
6785ea670f
(svn r10206) -Codechange: more moving things to blitter-layer: ScrollBuffer
2007-06-18 20:08:21 +00:00
truelight
d7736f6b83
(svn r10203) -Codechange: more moving things to blitter-layer: DrawLine
2007-06-18 19:38:23 +00:00
peter1138
704a67ff0b
(svn r10201) -Codechange: Replace Blitter::SetHorizontalLine with Blitter::DrawRect, as the former was only used by the rectangle drawing code anyway. This lets us draw rectangles in one go.
2007-06-18 18:45:12 +00:00
truelight
cdf6192ce0
(svn r10193) -Fix r10190: somehow an other partly-patch was applied too
2007-06-17 20:47:11 +00:00
truelight
79cd3f5db0
(svn r10190) -Codechange: merged renderer and blitter to one single class API: blitter
...
-Codechange: introduced a hierachy of blitters to avoid a lot of code duplication
Note: this allows much easier adding other types of video-drivers, like OpenGL
2007-06-17 20:30:28 +00:00
truelight
63f56f811b
(svn r10142) -Fix r10132: do something useful with the alpha channel instead of ignoring it
2007-06-13 16:04:35 +00:00
truelight
f782a311f8
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
...
-Add: added a new renderer and blitter to make room for some optimized bpp
-Fix: fill the alpha channel in the grf-spriteloader
2007-06-13 10:31:40 +00:00
truelight
0e53fd6d32
(svn r10121) -Codechange: split renderer from rest of code; no longer any code directly accesses the video-buffer
...
-Add: added NULL blitter and renderer, which are always used for -vnull
-Add: dedicated driver doesn't blit nor render by default. Can be overruled by user. (-D -b 8bpp-optimized)
-Remove: removed CTRL+D from win32, which is incompatible with above
-Add: extended screenshot support for PNG and BMP
-Codechange: remove all hardcoded 8bpp references and replace them with more dynamic ones
-Codechange: minor stuff in blitters
2007-06-12 20:24:12 +00:00
peter1138
8f7dea3f4f
(svn r10113) -Fix (r10092): Missing svn properties and some Id/@file comments
2007-06-12 12:27:40 +00:00