diff -ru scummvm-0.5.1/Makefile scummvm-0.5.1-linupy/Makefile
old
|
new
|
|
42 | 42 | #CXXFLAGS+= -Wredundant-decls |
43 | 43 | |
44 | 44 | # Load the build rules & settings for the chosen backend |
45 | | -include build.rules |
| 45 | include config.mak |
46 | 46 | |
47 | 47 | ####################################################################### |
48 | 48 | # Compile options - you can modify these to tweak ScummVM compilation # |
49 | 49 | ####################################################################### |
50 | 50 | |
51 | 51 | # Uncomment this to activate the MAD lib for compressed sound files |
52 | | DEFINES += -DUSE_MAD |
53 | | LIBS += -lmad |
| 52 | # DEFINES += -DUSE_MAD |
| 53 | # LIBS += -lmad |
54 | 54 | |
55 | 55 | # Uncomment this to activate the Ogg Vorbis lib for compressed sound files |
56 | 56 | # DEFINES += -DUSE_VORBIS |
diff -ru scummvm-0.5.1/backends/sdl/sdl-common.cpp scummvm-0.5.1-linupy/backends/sdl/sdl-common.cpp
old
|
new
|
|
59 | 59 | _mode = gfx_mode; |
60 | 60 | _full_screen = full_screen; |
61 | 61 | _adjustAspectRatio = aspect_ratio; |
62 | | _mode_flags = 0; |
| 62 | _mode_flags = 0; |
| 63 | _xyflipped = false; |
63 | 64 | |
64 | 65 | if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER | SDL_INIT_JOYSTICK) ==-1) { |
65 | 66 | error("Could not initialize SDL: %s.\n", SDL_GetError()); |
… |
… |
|
91 | 92 | OSystem_SDL_Common::OSystem_SDL_Common() |
92 | 93 | : _screen(0), _screenWidth(0), _screenHeight(0), |
93 | 94 | _tmpscreen(0), _tmpScreenWidth(0), _overlayVisible(false), |
94 | | _cdrom(0), _dirty_checksums(0), |
| 95 | _cdrom(0), _dirty_checksums(0), |
95 | 96 | _mouseVisible(false), _mouseDrawn(false), _mouseData(0), |
96 | 97 | _mouseHotspotX(0), _mouseHotspotY(0), |
97 | 98 | _currentShakePos(0), _newShakePos(0), |
… |
… |
|
529 | 530 | return key; |
530 | 531 | } |
531 | 532 | |
| 533 | void OSystem_SDL_Common::mouse_position_wrap(Event *event) { |
| 534 | event->mouse.x /= _scaleFactor; |
| 535 | event->mouse.y /= _scaleFactor; |
| 536 | |
| 537 | if (_adjustAspectRatio) |
| 538 | event->mouse.y = aspect2Real(event->mouse.y); |
| 539 | |
| 540 | if (_xyflipped) { |
| 541 | int tmp = event->mouse.x; |
| 542 | event->mouse.x = event->mouse.y; |
| 543 | event->mouse.y = _screenHeight - tmp - 1; |
| 544 | } |
| 545 | } |
| 546 | |
532 | 547 | bool OSystem_SDL_Common::poll_event(Event *event) { |
533 | 548 | SDL_Event ev; |
534 | 549 | int axis; |
… |
… |
|
539 | 554 | while(SDL_PollEvent(&ev)) { |
540 | 555 | switch(ev.type) { |
541 | 556 | case SDL_KEYDOWN: |
| 557 | #ifdef LINUPY |
| 558 | // Yopy has no ALT key, steal the SHIFT key |
| 559 | // (which isn't used much anyway) |
| 560 | if (ev.key.keysym.mod & KMOD_SHIFT) |
| 561 | b |= KBD_ALT; |
| 562 | if (ev.key.keysym.mod & KMOD_CTRL) |
| 563 | b |= KBD_CTRL; |
| 564 | #else |
542 | 565 | if (ev.key.keysym.mod & KMOD_SHIFT) |
543 | 566 | b |= KBD_SHIFT; |
544 | 567 | if (ev.key.keysym.mod & KMOD_CTRL) |
545 | 568 | b |= KBD_CTRL; |
546 | 569 | if (ev.key.keysym.mod & KMOD_ALT) |
547 | 570 | b |= KBD_ALT; |
| 571 | #endif |
548 | 572 | event->kbd.flags = b; |
549 | 573 | |
550 | 574 | // Alt-Return toggles full screen mode |
… |
… |
|
596 | 620 | break; |
597 | 621 | } |
598 | 622 | |
| 623 | #ifdef LINUPY |
| 624 | // On Yopy map the End button to quit |
| 625 | if ((ev.key.keysym.sym==293)) { |
| 626 | event->event_code = EVENT_QUIT; |
| 627 | return true; |
| 628 | } |
| 629 | // Map menu key to f5 (scumm menu) |
| 630 | if (ev.key.keysym.sym==306) { |
| 631 | event->event_code = EVENT_KEYDOWN; |
| 632 | event->kbd.keycode = SDLK_F5; |
| 633 | event->kbd.ascii = mapKey(SDLK_F5, ev.key.keysym.mod, 0); |
| 634 | return true; |
| 635 | } |
| 636 | // Map action key to action |
| 637 | if (ev.key.keysym.sym==291) { |
| 638 | event->event_code = EVENT_KEYDOWN; |
| 639 | event->kbd.keycode = SDLK_TAB; |
| 640 | event->kbd.ascii = mapKey(SDLK_TAB, ev.key.keysym.mod, 0); |
| 641 | return true; |
| 642 | } |
| 643 | // Map OK key to skip cinematic |
| 644 | if (ev.key.keysym.sym==292) { |
| 645 | event->event_code = EVENT_KEYDOWN; |
| 646 | event->kbd.keycode = SDLK_ESCAPE; |
| 647 | event->kbd.ascii = mapKey(SDLK_ESCAPE, ev.key.keysym.mod, 0); |
| 648 | return true; |
| 649 | } |
| 650 | #endif |
| 651 | |
599 | 652 | #ifdef QTOPIA |
600 | 653 | // quit on fn+backspace on zaurus |
601 | 654 | if (ev.key.keysym.sym == 127) { |
… |
… |
|
698 | 751 | event->event_code = EVENT_MOUSEMOVE; |
699 | 752 | km.x = event->mouse.x = ev.motion.x; |
700 | 753 | km.y = event->mouse.y = ev.motion.y; |
701 | | |
702 | | event->mouse.x /= _scaleFactor; |
703 | | event->mouse.y /= _scaleFactor; |
704 | | |
705 | | if (_adjustAspectRatio) |
706 | | event->mouse.y = aspect2Real(event->mouse.y); |
| 754 | |
| 755 | mouse_position_wrap(event); |
707 | 756 | return true; |
708 | 757 | |
709 | 758 | case SDL_MOUSEBUTTONDOWN: |
… |
… |
|
721 | 770 | break; |
722 | 771 | km.x = event->mouse.x = ev.button.x; |
723 | 772 | km.y = event->mouse.y = ev.button.y; |
724 | | event->mouse.x /= _scaleFactor; |
725 | | event->mouse.y /= _scaleFactor; |
726 | | |
727 | | if (_adjustAspectRatio) |
728 | | event->mouse.y = aspect2Real(event->mouse.y); |
729 | 773 | |
| 774 | mouse_position_wrap(event); |
730 | 775 | return true; |
731 | 776 | |
732 | 777 | case SDL_MOUSEBUTTONUP: |
… |
… |
|
738 | 783 | break; |
739 | 784 | event->mouse.x = ev.button.x; |
740 | 785 | event->mouse.y = ev.button.y; |
741 | | event->mouse.x /= _scaleFactor; |
742 | | event->mouse.y /= _scaleFactor; |
743 | | |
744 | | if (_adjustAspectRatio) |
745 | | event->mouse.y = aspect2Real(event->mouse.y); |
746 | 786 | |
| 787 | mouse_position_wrap(event); |
747 | 788 | return true; |
748 | 789 | |
749 | 790 | case SDL_JOYBUTTONDOWN: |
… |
… |
|
846 | 887 | } |
847 | 888 | event->mouse.x = km.x; |
848 | 889 | event->mouse.y = km.y; |
849 | | event->mouse.x /= _scaleFactor; |
850 | | event->mouse.y /= _scaleFactor; |
851 | | |
852 | | if (_adjustAspectRatio) |
853 | | event->mouse.y = aspect2Real(event->mouse.y); |
854 | 890 | |
| 891 | mouse_position_wrap(event); |
855 | 892 | return true; |
856 | 893 | |
857 | 894 | case SDL_VIDEOEXPOSE: |
diff -ru scummvm-0.5.1/backends/sdl/sdl-common.h scummvm-0.5.1-linupy/backends/sdl/sdl-common.h
old
|
new
|
|
160 | 160 | bool _full_screen; |
161 | 161 | uint32 _mode_flags; |
162 | 162 | |
| 163 | bool _xyflipped; |
| 164 | int _realWidth, _realHeight; |
| 165 | |
163 | 166 | enum { |
164 | 167 | NUM_DIRTY_RECT = 100, |
165 | 168 | |
… |
… |
|
224 | 227 | virtual void load_gfx_mode() = 0; |
225 | 228 | virtual void unload_gfx_mode() = 0; |
226 | 229 | |
| 230 | void mouse_position_wrap(Event *event); |
| 231 | |
227 | 232 | void setup_icon(); |
228 | 233 | void kbd_mouse(); |
229 | 234 | void init_joystick() { _joystick = SDL_JoystickOpen(0); } |
diff -ru scummvm-0.5.1/backends/sdl/sdl.cpp scummvm-0.5.1-linupy/backends/sdl/sdl.cpp
old
|
new
|
|
106 | 106 | _scaleFactor = 1; |
107 | 107 | _scaler_proc = Normal1x; |
108 | 108 | break; |
| 109 | |
| 110 | case GFX_XYFLIP: |
| 111 | _scaleFactor = 1; |
| 112 | _scaler_proc = XYFlip; |
| 113 | _xyflipped = true; |
| 114 | break; |
109 | 115 | default: |
110 | 116 | error("unknown gfx mode %d", _mode); |
111 | 117 | _scaleFactor = 1; |
… |
… |
|
122 | 128 | // |
123 | 129 | // Create the surface that contains the scaled graphics in 16 bit mode |
124 | 130 | // |
125 | | |
126 | | _hwscreen = SDL_SetVideoMode(_screenWidth * _scaleFactor, (_adjustAspectRatio ? 240 : _screenHeight) * _scaleFactor, 16, |
127 | | _full_screen ? (SDL_FULLSCREEN|SDL_SWSURFACE) : SDL_SWSURFACE |
128 | | ); |
| 131 | if (_xyflipped) { |
| 132 | _realWidth = (_adjustAspectRatio ? 240 : _screenHeight) * _scaleFactor; |
| 133 | _realHeight = _screenWidth * _scaleFactor; |
| 134 | } else { |
| 135 | _realWidth = _screenWidth * _scaleFactor; |
| 136 | _realHeight = (_adjustAspectRatio ? 240 : _screenHeight) * _scaleFactor; |
| 137 | } |
| 138 | _hwscreen = SDL_SetVideoMode(_realWidth, _realHeight, 16, |
| 139 | _full_screen ? (SDL_FULLSCREEN|SDL_SWSURFACE) : SDL_SWSURFACE); |
129 | 140 | if (_hwscreen == NULL) |
130 | 141 | error("_hwscreen failed"); |
131 | 142 | |
… |
… |
|
152 | 163 | error("_tmpscreen failed"); |
153 | 164 | |
154 | 165 | // keyboard cursor control, some other better place for it? |
155 | | km.x_max = _screenWidth * _scaleFactor - 1; |
156 | | km.y_max = _screenHeight * _scaleFactor - 1; |
| 166 | km.x_max = _realWidth - 1; |
| 167 | km.y_max = _realHeight - 1; |
157 | 168 | km.delay_time = 25; |
158 | 169 | km.last_time = 0; |
159 | 170 | } |
… |
… |
|
214 | 225 | |
215 | 226 | // If the shake position changed, fill the dirty area with blackness |
216 | 227 | if (_currentShakePos != _newShakePos) { |
217 | | SDL_Rect blackrect = {0, 0, _screenWidth * _scaleFactor, _newShakePos * _scaleFactor}; |
| 228 | SDL_Rect blackrect = {0, 0, _realWidth, _newShakePos * _scaleFactor}; |
218 | 229 | |
219 | 230 | if (_adjustAspectRatio) |
220 | 231 | blackrect.h = real2Aspect(blackrect.h - 1) + 1; |
… |
… |
|
228 | 239 | |
229 | 240 | // Make sure the mouse is drawn, if it should be drawn. |
230 | 241 | draw_mouse(); |
231 | | |
| 242 | |
232 | 243 | // Check whether the palette was changed in the meantime and update the |
233 | 244 | // screen surface accordingly. |
234 | 245 | if (_paletteDirtyEnd != 0) { |
… |
… |
|
241 | 252 | _forceFull = true; |
242 | 253 | } |
243 | 254 | |
| 255 | if (_xyflipped) |
| 256 | _forceFull = true; |
| 257 | |
244 | 258 | // Force a full redraw if requested |
245 | 259 | if (_forceFull) { |
246 | 260 | _num_dirty_rects = 1; |
… |
… |
|
311 | 325 | (byte *)_hwscreen->pixels + r->x * 2 * _scaleFactor + dst_y * dstPitch, dstPitch, r->w, dst_h); |
312 | 326 | } |
313 | 327 | |
314 | | r->x *= _scaleFactor; |
315 | | r->y = dst_y; |
316 | | r->w *= _scaleFactor; |
317 | | r->h = dst_h * _scaleFactor; |
| 328 | if (_xyflipped) { |
| 329 | r->y = r->x * _scaleFactor; |
| 330 | r->x = dst_y; |
| 331 | r->h = r->w * _scaleFactor; |
| 332 | r->w = dst_h * _scaleFactor; |
| 333 | } else { |
| 334 | r->x *= _scaleFactor; |
| 335 | r->y = dst_y; |
| 336 | r->w *= _scaleFactor; |
| 337 | r->h = dst_h * _scaleFactor; |
| 338 | } |
318 | 339 | |
319 | 340 | if (_adjustAspectRatio && orig_dst_y / _scaleFactor < _screenHeight) |
320 | 341 | r->h = stretch200To240((uint8 *) _hwscreen->pixels, dstPitch, r->w, r->h, r->x, r->y, orig_dst_y); |
… |
… |
|
327 | 348 | // This is necessary if shaking is active. |
328 | 349 | if (_forceFull) { |
329 | 350 | _dirty_rect_list[0].y = 0; |
330 | | _dirty_rect_list[0].h = (_adjustAspectRatio ? 240 : _screenHeight) * _scaleFactor; |
| 351 | _dirty_rect_list[0].h = _realHeight; |
331 | 352 | } |
332 | 353 | |
333 | 354 | // Finally, blit all our changes to the screen |
Only in scummvm-0.5.1-linupy: build.rules
diff -ru scummvm-0.5.1/common/gameDetector.cpp scummvm-0.5.1-linupy/common/gameDetector.cpp
old
|
new
|
|
54 | 54 | "\t-x[<num>] - load this savegame (default: 0 - autosave)\n" |
55 | 55 | "\t-f - fullscreen mode\n" |
56 | 56 | "\t-g<mode> - graphics mode (normal,2x,3x,2xsai,super2xsai,\n" |
57 | | "\t supereagle,advmame2x,advmame3x,tv2x,dotmatrix)\n" |
| 57 | "\t supereagle,advmame2x,advmame3x,tv2x,dotmatrix,\n" |
| 58 | " xyflip)\n" |
58 | 59 | "\t-e<mode> - set music engine (see README for details)\n" |
59 | 60 | "\t-a - specify game is amiga version\n" |
60 | 61 | "\t-q<lang> - specify language (en,de,fr,it,pt,es,jp,zh,kr,se,\n" |
… |
… |
|
110 | 111 | {"tv2x", "TV2x", GFX_TV2X}, |
111 | 112 | {"dotmatrix", "DotMatrix", GFX_DOTMATRIX}, |
112 | 113 | {"opengl", "OpenGL", GFX_BILINEAR}, |
| 114 | {"xyflip", "XYFlip", GFX_XYFLIP}, |
113 | 115 | #else |
114 | 116 | {"flipping", "Page Flipping", GFX_FLIPPING}, |
115 | 117 | {"dbuffer", "Double Buffer", GFX_DOUBLEBUFFER}, |
diff -ru scummvm-0.5.1/common/scaler.cpp scummvm-0.5.1-linupy/common/scaler.cpp
old
|
new
|
|
656 | 656 | } |
657 | 657 | } |
658 | 658 | |
| 659 | /** Flip X and Y axis, for Yopy-like PDAs */ |
| 660 | void XYFlip(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, |
| 661 | int width, int height) |
| 662 | { |
| 663 | unsigned int nextlineSrc = srcPitch / sizeof(uint16); |
| 664 | const uint16 *p = (const uint16 *)srcPtr; |
| 665 | |
| 666 | unsigned int nextlineDst = dstPitch / sizeof(uint16); |
| 667 | uint16 *q = (uint16 *)dstPtr; |
| 668 | |
| 669 | for (int j = 0; j < height; ++j) { |
| 670 | for (int i = 0; i < width; ++i) { |
| 671 | *(q + i * nextlineDst + (height - j - 1)) = *(p + i); |
| 672 | } |
| 673 | p += nextlineSrc; |
| 674 | } |
| 675 | } |
| 676 | |
659 | 677 | #define kVeryFastAndUglyAspectMode 0 // No interpolation at all, but super-fast |
660 | 678 | #define kFastAndNiceAspectMode 1 // Quite good quality with good speed |
661 | 679 | #define kSlowAndPerfectAspectMode 2 // Accurate but slow code |
diff -ru scummvm-0.5.1/common/scaler.h scummvm-0.5.1-linupy/common/scaler.h
old
|
new
|
|
40 | 40 | DECLARE_SCALER(Normal3x); |
41 | 41 | DECLARE_SCALER(TV2x); |
42 | 42 | DECLARE_SCALER(DotMatrix); |
| 43 | DECLARE_SCALER(XYFlip); |
43 | 44 | |
44 | 45 | FORCEINLINE int real2Aspect(int y) { |
45 | 46 | return y + (y + 1) / 5; |
… |
… |
|
64 | 65 | GFX_ADVMAME3X = 7, |
65 | 66 | GFX_TV2X = 8, |
66 | 67 | GFX_DOTMATRIX = 9, |
| 68 | GFX_XYFLIP = 10, |
67 | 69 | |
68 | 70 | GFX_BILINEAR = 12, // OpenGL backend |
69 | 71 | |
Only in scummvm-0.5.1-linupy: config.h
Only in scummvm-0.5.1-linupy: config.log
Only in scummvm-0.5.1-linupy: config.mak
diff -ru scummvm-0.5.1/configure scummvm-0.5.1-linupy/configure
old
|
new
|
|
80 | 80 | find_sdlconfig() |
81 | 81 | { |
82 | 82 | printf "Looking for sdl-config... " |
83 | | sdlconfigs="$_sdlconfig sdl-config sdl11-config sdl12-config" |
84 | | for sdlconfig in $sdlconfigs; do |
85 | | if test "-e $sdlconfig" ; then |
86 | | _sdlconfig=$sdlconfig |
| 83 | if test -n $_sdlconfig; then |
87 | 84 | echo $_sdlconfig |
88 | | break |
89 | | else |
90 | | echo "none found!" |
91 | | exit 1 |
92 | | fi |
93 | | done |
| 85 | else |
| 86 | sdlconfigs="$_sdlconfig sdl-config sdl11-config sdl12-config" |
| 87 | for sdlconfig in $sdlconfigs; do |
| 88 | if test "-e $sdlconfig" ; then |
| 89 | _sdlconfig=$sdlconfig |
| 90 | echo $_sdlconfig |
| 91 | break |
| 92 | else |
| 93 | echo "none found!" |
| 94 | exit 1 |
| 95 | fi |
| 96 | done |
| 97 | fi |
94 | 98 | } |
95 | 99 | |
96 | 100 | # |
… |
… |
|
156 | 160 | -h, --help display this help and exit |
157 | 161 | --backend=BACKEND backend to build (sdl, sdlgl, x11, morphos, dc, gp32) [sdl] |
158 | 162 | |
| 163 | Special configuration: |
| 164 | --target=TARGET cross-compile for given target (linupy for Yopy Linux PDA) |
| 165 | --sdl-config=PATH path to the sdl-config script (for cross-compilations) |
| 166 | |
159 | 167 | Optional Features: |
160 | 168 | --disable-scumm don't build the SCUMM engine |
161 | 169 | --disable-simon don't build the simon engine |
… |
… |
|
182 | 190 | --disable-vorbis) _vorbis=no ;; |
183 | 191 | --enable-mad) _mad=yes ;; |
184 | 192 | --disable-mad) _mad=no ;; |
| 193 | --target=linupy) _linupy=yes ;; |
185 | 194 | |
186 | 195 | --backend=*) |
187 | 196 | _backend=`echo $ac_option | cut -d '=' -f 2` |
188 | 197 | ;; |
| 198 | --sdl-config=*) |
| 199 | _sdlconfig=`echo $ac_option | cut -d '=' -f 2` |
| 200 | ;; |
189 | 201 | esac; |
190 | 202 | done; |
191 | 203 | |
… |
… |
|
302 | 314 | ;; |
303 | 315 | esac |
304 | 316 | |
305 | | # |
306 | | # Check for endianess |
307 | | # |
308 | | printf "Checking endianess... " |
309 | | cat <<EOF >tmp_endianess_check.cpp |
| 317 | if test "$_linupy" = "yes" ; then |
| 318 | echo "Cross-compiling to Linupy:" |
| 319 | echo " - enabling special key bindings." |
| 320 | echo " - forcing memory mode to little endian." |
| 321 | echo " - enabling SCUMM_NEED_ALIGNMENT." |
| 322 | DEFINES="$DEFINES -DLINUPY -DSCUMM_NEED_ALIGNMENT" |
| 323 | _def_endianess='#define SCUMM_LITTLE_ENDIAN' |
| 324 | _def_align='#define SCUMM_NEED_ALIGNMENT' |
| 325 | else |
| 326 | # |
| 327 | # Check for endianess |
| 328 | # |
| 329 | printf "Checking endianess... " |
| 330 | cat <<EOF >tmp_endianess_check.cpp |
310 | 331 | #include <stdio.h> |
311 | 332 | #include <stdlib.h> |
312 | 333 | int main(int argc, char **argv) |
… |
… |
|
322 | 343 | return 0; |
323 | 344 | } |
324 | 345 | EOF |
325 | | $CXX -o tmp_endianess_check tmp_endianess_check.cpp |
326 | | endianess=`./tmp_endianess_check` |
327 | | echo $endianess; |
328 | | case $endianess in |
| 346 | $CXX -o tmp_endianess_check tmp_endianess_check.cpp |
| 347 | endianess=`./tmp_endianess_check` |
| 348 | echo $endianess; |
| 349 | case $endianess in |
329 | 350 | big) |
330 | | _def_endianess='#define SCUMM_BIG_ENDIAN' |
331 | | ;; |
| 351 | _def_endianess='#define SCUMM_BIG_ENDIAN' |
| 352 | ;; |
332 | 353 | little) |
333 | | _def_endianess='#define SCUMM_LITTLE_ENDIAN' |
334 | | ;; |
| 354 | _def_endianess='#define SCUMM_LITTLE_ENDIAN' |
| 355 | ;; |
335 | 356 | *) |
336 | | exit 1 |
337 | | ;; |
338 | | esac |
339 | | rm -f tmp_endianess_check tmp_endianess_check.cpp |
340 | | |
341 | | # |
342 | | # Check whether memory alignment is required |
343 | | # |
344 | | echo -n "Alignment required... " |
345 | | cat > $TMPC << EOF |
| 357 | exit 1 |
| 358 | ;; |
| 359 | esac |
| 360 | rm -f tmp_endianess_check tmp_endianess_check.cpp |
| 361 | |
| 362 | # |
| 363 | # Check whether memory alignment is required |
| 364 | # |
| 365 | echo -n "Alignment required... " |
| 366 | cat > $TMPC << EOF |
346 | 367 | #include <stdlib.h> |
347 | 368 | #include <signal.h> |
348 | 369 | int main(int argc, char **argv) |
… |
… |
|
357 | 378 | return 0; |
358 | 379 | } |
359 | 380 | EOF |
360 | | _need_memalign=yes |
361 | | cc_check && $TMPO && _need_memalign=no |
362 | | if test "$_need_memalign" = yes ; then |
363 | | _def_align='#define SCUMM_NEED_ALIGNMENT' |
364 | | else |
365 | | _def_align='#undef SCUMM_NEED_ALIGNMENT' |
| 381 | _need_memalign=yes |
| 382 | cc_check && $TMPO && _need_memalign=no |
| 383 | if test "$_need_memalign" = yes ; then |
| 384 | _def_align='#define SCUMM_NEED_ALIGNMENT' |
| 385 | DEFINES="$DEFINES -DSCUMM_NEED_ALIGNMENT" |
| 386 | else |
| 387 | _def_align='#undef SCUMM_NEED_ALIGNMENT' |
| 388 | fi |
| 389 | echo "$_need_memalign" |
| 390 | |
| 391 | |
366 | 392 | fi |
367 | | echo "$_need_memalign" |
368 | 393 | |
369 | 394 | # |
370 | 395 | # Determine data type sizes |
… |
… |
|
519 | 544 | #endif /* CONFIG_H */ |
520 | 545 | EOF |
521 | 546 | |
| 547 | if test "$_linupy" = "yes" ; then |
| 548 | echo "Use the --sdl-config= option if you have problems with SDL." |
| 549 | CXX=arm-linux-g++ |
| 550 | RANLIB=arm-linux-ranlib |
| 551 | fi |
| 552 | |
522 | 553 | echo "Creating config.mak" |
523 | 554 | cat > config.mak << EOF |
524 | 555 | # -------- Generated by configure ----------- |
… |
… |
|
535 | 566 | DEFINES += $DEFINES |
536 | 567 | LDFLAGS += $LDFLAGS |
537 | 568 | EOF |
| 569 | |