summaryrefslogtreecommitdiff
path: root/video
AgeCommit message (Collapse)Author
2006-06-10(svn r5210) Many small changes which piled up: const, unsigned, variable ↵tron
scope, CSE for readability, DeMorgan, if cascades -> switch, whitespace, parentheses, bracing, misc.
2006-05-09(svn r4810) - Fix: removed warning about strict-alias (release build)glx
2006-03-25(svn r4099) -Codechange: [OSX] the cocoa video driver speedup of around ↵bjarni
1000% now also applies to Intel macs
2006-03-24(svn r4091) - Fix r4075. Do not "enter" please.Darkvater
2006-03-24(svn r4090) - Followup for r4075. Some SDL implementations seem to have a ↵Darkvater
different define for the SDL_ACTIVEEVENT SDL_APPMOUSEFOCUS which caused undrawing of the mouse only on losing input-focus. Correctly check for the event state
2006-03-24(svn r4083) -Feature: [OSX] Ported r4075 (Undraw the mouse when it leaves ↵egladil
the window and Draw it again when it enters).
2006-03-24(svn r4082) -Fix: [OSX] FS#80 Crash when switching from windowed to fullscreenbjarni
this bug was introduced in rev 3670, but when undetected for a long time since it was resolution specific this is likely the issue with x86 OSX in fullscreen, so I removed the really slow workaround and will clean it up once I get positive feedback from a x86 mac this means that x86 OSX should now get the 1000% video driver speed boost as well this fix is written by eglandil
2006-03-24(svn r4075) - Feature: Undraw the mouse when it leaves the window and Draw ↵Darkvater
it again when it enters. Added both for WIN32 and SDL. Since Win95 has troubles with TrackMouseEvent(), this function was just simply rewritten which was the easiest. Based on a patch by DmitryKo.
2006-03-21(svn r3999) - Fix: [win32] Change the order of DestroyWindow and ↵Darkvater
ChangeDisplay. On some machines a sizechange messagequeue is handled before sending WM_DISPLAYCHANGE resulting in an improper resolution written to the configuration file when exiting from fullscreen. (Frostregen)
2006-03-18(svn r3971) reverted r3742 as those new errors were not the right way to ↵bjarni
handle those exceptions
2006-03-02(svn r3742) -codechange: [OSX] changed an assert to use the new error window ↵bjarni
and added another two to show if the screen buffer fails for some reason in cocoa driver (instead of just crashing)
2006-03-02(svn r3741) -Fix: [i686 OSX] reverted the change in rev 3670 for non PowerPC ↵bjarni
(done with #ifdef) since it appeared to crash intel based macs This fix is not a good solution and might not work, but if it works, it's better than nothing until we get the real solution
2006-02-24(svn r3671) -Code cleanup: fixed style and removed commented out code in ↵bjarni
video/cocoa_v.m
2006-02-24(svn r3670) -Codechange: [OSX] rewrote a part of the cocoa video driver to ↵bjarni
speed it up by 1000% in fullscreen rewrote QZ_DrawScreen to only redraw dirty rectangles (instead of everything) This reduce the OpenTTD time spent on this function from 75% to 6,7% (in main menu) Note: window mode is unaffected by this commit Note: the mouse pointer can now leave artefacts in debug mode
2006-02-20(svn r3640) - Remove win32-only variables from variables.h and put them into ↵Darkvater
win32_v.c. Also ifdef the win32 specific configuration file settings.
2006-02-19(svn r3618) -Codechange: [OSX] reduce the time spend in the cocoa video driverbjarni
by caching global vars in local vars, the CPU keeps them in registers when looping all pixels on screen this reduce reading from RAM, which is much slower (Tron wrote this after I detected that those loops used a lot of time) Note: since the reduced time is waiting for the RAM, the actual CPU usage is not reduced. This means that it's only detectable while fast forwarding and other situations when OTTD wants to use more than 100% of the CPU time
2006-02-18(svn r3617) Fix warning introduced in r3616tron
2006-02-18(svn r3616) Style sweeptron
2006-02-18(svn r3615) Remove the Quartz key codes from the public cocoa video driver ↵tron
interface
2006-02-12(svn r3596) -Codechange: [OSX] changed to use Apple's macros instead of OTTD ↵bjarni
macros for endian conversion This increases the execution speed a lot since GCC can't detect the OTTD macro as an endian conversion while Apple's code uses the instruction to convert endian instead of a series of instructions to produce the same result Since we don't have that many endian conversions in the game, overall performance should not increase noteworthy
2006-02-01(svn r3511) More whitespace ([FS#46] by Rubidium)tron
2006-01-09(svn r3393) -Fix: [OSX] some keyboards had a different scancode for opening ↵bjarni
the console (egladil)
2006-01-06(svn r3375) -Add: [ FS#29 ] show an error dialog for OSX cocoa driver (egladil)truelight
2005-12-24(svn r3339) Remove unnecessary includestron
2005-12-19(svn r3320) - Fix: FS#22 - Exiting with double size enabled saves wrong ↵Darkvater
window size. Reset the window size to its true size upon exiting when double-size is active. Is set in ClientSizeChanged.
2005-12-11(svn r3288) Set svn properties on cocoa related files, and add Id tag.peter1138
Add extern to cocoa sound driver.
2005-12-10(svn r3286) -Fix: [OSX] 10.2 works again and universal binaries got 10.2 as ↵bjarni
target by default
2005-12-10(svn r3281) -Feature: [OSX] added native cocoa sound and video drivers (egladil)bjarni
you can still use SDL drivers if you like and you have to run "make upgradeconf" to start using the cocoa drivers (or manually write WITH_COCOA:=1) since SDL breaks the cocoa drivers, you can't compile with both SDL and cocoa support Using cocoa drivers makes it easier to make universal binaries and it solves: -FS#18 [OSX] SDL is weird in universal binaries -FS#2 [OSX] lazy pointer crash on exit -FS#10 [OSX] linking error when linking statically to SDL 1.2.8 (needless to explain this, but it means it should be able to compile statically with the default settings now) -[ 1215073 ] Switching to large size out of fullscreen crashes Using SDL drivers will still have those issues though
2005-11-16(svn r3207) Typo in last revisiontron
2005-11-16(svn r3206) Wrap all instances of _dbg_screen_rect in #ifdef _DEBUGtron
2005-10-06(svn r3023) -Fix [BeOS] fixed compilation on BeOS R5 (MYOB)bjarni
2005-09-08(svn r2924) Introduce the ALIGN() macro which aligns values to multiples of ↵tron
a power of 2, for exact semantics see the commment in macros.h
2005-08-01(svn r2781) Fix some of the issues with variables in .h files.ludde
2005-07-29(svn r2748) Remove unused cruft from the main looptron
2005-07-29(svn r2746) -Fix: SDL_SetColors() has the number of palette entries to ↵tron
change as parameter, not one beyond the last entry to change
2005-07-27(svn r2728) -Fix/Feature: Change the driver probing algorithmtron
Instead of trying to start a single driver and bailing out if that fails, try to initialise one by one and use the first one which succeeds. This should fix problems on machines with no sound card, where -s null had to be specified manually.
2005-07-27(svn r2726) Fix last committron
2005-07-27(svn r2725) Move MyShowCursor() back into win32.c, it fits better theretron
2005-07-26(svn r2720) Remove unused declarations and definitionstron
2005-07-25(svn r2710) Simplify dedicated server code a bit and don't compile it at ↵tron
all, if network support ist disabled
2005-07-25(svn r2704) Remove . from include path again, too much trouble. Also add ↵tron
some #ifdefs and #includes for the Windows build
2005-07-24(svn r2701) Insert Id tags into all source filestron
2005-07-23(svn r2695) - Fix: OS/2 project update, add os2.h to dedicated_v.corudge
2005-07-23(svn r2694) Various smaller changes: eol-style, static, code simplificationtron
2005-07-23(svn r2692) Forgot to add a filetron
2005-07-23(svn r2691) Separate dedicated video driver and fix bemidi declarationstron
2005-07-23(svn r2688) MSVC and Watcom can't handle identical file names in different ↵tron
directories, oh my...
2005-07-23(svn r2685) -Codechange: Split the music/sound/video drivers into separate ↵tron
files and move them into subfolders. This results in shorter and hopefully easier to maintain files. Note: I had to change paths in #include statements of some unrelated files, because I added the ottd base directory to the include path (-I.)