Opened 22 years ago

Closed 22 years ago

Last modified 5 years ago

#69 closed defect

patch for backward-compatbiliity with sdl 1.0.x

Reported by: SF/grigorig Owned by: SF/ender
Priority: normal Component: Ports
Version: Keywords:
Cc: Game:

Description

this small patch against sdl.cpp should give backwards compatibility for sdl 1.0.x

----------schnipp---------------------------- 139c139 < if (event.button.button==SDL_BUTTON(1)) --- > if (event.button.button==SDL_BUTTON_LEFT) 141c141 < else if (event.button.button==SDL_BUTTON(3)) --- > else if (event.button.button==SDL_BUTTON_RIGHT) 145c145 < if (event.button.button==SDL_BUTTON(1)) --- > if (event.button.button==SDL_BUTTON_LEFT) 147c147 < else if (event.button.button==SDL_BUTTON(3)) --- > else if (event.button.button==SDL_BUTTON_RIGHT) 509c509 < SDL_ShowCursor(0); --- > SDL_ShowCursor(SDL_DISABLE); --------------------schnapp------------------

works nicely for me under freebsd 4.5

Ticket imported from: #514390. Ticket imported from: bugs/69.

Change History (7)

comment:1 by SF/grigorig, 22 years ago

Summary: problems with libsdl 1.2.3patch for backward-compatbiliity with sdl 1.0.x

comment:2 by SF/ender, 22 years ago

Ick. Please attach a unified diff to the report - do not paste diffs!

Also why do you want this backwards compatability with such an old SDL version? There is a fair chance we'll use new SDL commands sometime soon, so I'm loath to apply something like this without good reason ;)

comment:3 by SF/ender, 22 years ago

Owner: set to SF/ender

comment:4 by SF/grigorig, 22 years ago

very simple reason :)

i didn't have sdl 1.2.x installed and didn't want to upgrade :)

scummvm works ok so far. I successfully played through monkey island2 (german).

comment:5 by SF/ender, 22 years ago

Status: newclosed

comment:6 by SF/ender, 22 years ago

Patch not applied on advice of #sdl. Thanks for submitting it anyway, grigorig :)

comment:7 by digitall, 5 years ago

Component: Ports
Note: See TracTickets for help on using tickets.