Commit Graph

3883 Commits

Author SHA1 Message Date
mtabachenko 47f781d26d OpenGL:
- fix line segment detection (fix missing textures in Garfield's Nightmare, Zelda PH);
- recreate toon texture on load state;
2011-03-27 14:21:11 +00:00
mtabachenko ea19f9cf6c GE:
- removed hacks from Geometry FIFO;
2011-03-26 17:06:32 +00:00
riccardom 40d89c77f6 gtk: Fix build on gtk 2.24 2011-03-25 20:48:27 +00:00
riccardom 42ffac8197 firmware: don't leak fp when not patched. 2011-03-25 17:15:14 +00:00
riccardom b3122f97ee gtk-glade: Fix a couple of off-by-one reported by cppcheck 2011-03-25 17:01:24 +00:00
pengvado c4c9cf60f6 drawscanline: factor bounds check out of the loop.
Initialize edge_fx_fl even if width=height=0.

Fix a freeze/slowdown in Okamiden (#3240891).
Also a slight softrasterizer speedup.
2011-03-24 22:00:54 +00:00
zeromus 9e70ebca45 fix freebsd libfat compiling? 2011-03-24 21:51:17 +00:00
riccardom a070dc091b Update and reenable pthreads
Apply pengvado pthread backend for task. We are probably
not gaining that much but it is better than a stub :)

Removed the rasterize.cpp hunk sice zeromus likes it more
as it is now.

Patch from  #3203082.

From: Loren Merritt <pengvado@akuvian.org>
2011-03-24 18:15:40 +00:00
zeromus 972d9e28ea fix memory leak in slot2 mpcf 2011-03-21 02:52:16 +00:00
gocha d77e3ee425 RAM Search: fix reset code and update the current values for every addresses.
RAM Search: workaround for auto search restart.
2011-03-21 00:22:53 +00:00
zeromus 143217af2c sync emufiles between emus 2011-03-20 18:33:41 +00:00
riccardom 80fd38374f Reinitialize GL after SDL_SetVideoMode
On some systems SDL_SetVideoMode resets OpenGL context,
dropping the screen texture and leading to glTexSubimage2D
failure when using the --opengl-2d switch.

Attached patch reinitialized OpenGL after window resize.

This is a forward port of Jakub Higersberger patch at
 #2839785. This fix the broken resize with cli frontend
reported in #3195218.
2011-03-16 21:42:53 +00:00
riccardom 8422f0ab7c cli: put 'now' variable declaration were due
Note to self: this is C not python.
2011-03-12 16:41:08 +00:00
riccardom 3713c1ba7f cli: avoid some overhead with DISPLAY_FPS defined
Avoid a call to SDL_GetTicks() which in turn call the
gettimeofday() syscall when DISPLAY_FPS() is defined.
2011-03-09 22:07:44 +00:00
riccardom 18349689c8 cli: better FPS limiting
Simplify and make the fps limit behave better.

From: Thomas Jones <thomas.jones@utoronto.ca>

[rm: remove fps_limiter_frame_period now unused and fixup whitespace]
2011-03-09 21:55:48 +00:00
riccardom 9d0c383e93 autoconf: use AC_CANONICAL_HOST not AC_CANONICAL_TARGET
AC_CANONICAL_TARGET is for compilers, desmume is not a compiler. It
figures out what platform the compiler should generate binaries for.

AC_CANONICAL_HOST is for figuring out what platform you will run on.

From: Thomas Jones <thomas.jones@utoronto.ca>
2011-03-09 21:15:40 +00:00
zeromus ade66fd351 fix bug from r3935 which broke textures when loading savestate while using softrasterizer 2011-03-08 07:00:22 +00:00
zeromus 782a15da11 don't render rotscaled bitmap sprites with alpha==0 2011-03-06 22:03:06 +00:00
zeromus 9897125f9a add hq4x filter. i can't tell if i did it right, because all hqx filters look broken to me even when theyre working. 2011-03-05 20:04:05 +00:00
riccardom 009029b15d rasterize: check if _MSC_VER is defined before checking against a version 2011-02-28 18:08:13 +00:00
riccardom e7064a71b6 gtk: Remove usage of deprecated gtk_label_set 2011-02-28 18:06:02 +00:00
mtabachenko fc0daf243a - fix line segment detection; 2011-02-25 14:57:01 +00:00
zeromus bf013a7c18 more robust dsi touch 2011-02-25 07:21:52 +00:00
zeromus 4a330878ae add --dsi-mode=1 and dsi TSC emulation. this does not constitute "dsi support". you will probably think that it does anyway. 2011-02-22 07:13:20 +00:00
zeromus 0a0d4fe509 add --debug-console=1 which affects arm9 swi 0x0F and whether 8MB ewram is installed 2011-02-21 20:12:04 +00:00
mtabachenko 8c049fc914 - removed new 3D polygon definitions; 2011-02-16 09:31:14 +00:00
wntrmute a8f6163bb2 remove delay from idle loop, correct slash in desmume.ini path (both slashes work on windows, backslashes don't on linux & osx 2011-02-14 17:05:37 +00:00
zeromus d583566a3e fix bugs in arm7's VRAMSTAT register 2011-02-11 07:35:08 +00:00
mtabachenko 711f5ef88c - added new 3D polygon definitions (disabled by default and work only with OpenGL);
OpenGL:
- a bit optimization FBO;
2011-02-09 16:04:15 +00:00
mtabachenko 133419a1e3 - renamed file names for slot2 addons; 2011-02-09 15:04:07 +00:00
zeromus 20aa3cc42e now that i have a piano to test with, refine piano emulation a bit. also rename that file to conform to more recent standards 2011-02-09 00:36:25 +00:00
zeromus 1d239bce90 properly handle sprite virtual screen y dimension wrapping (fixes rotoscaled sprites which wrap across the bottom of the screen and back to the top) 2011-02-07 21:01:42 +00:00
zeromus 111476de2e flush some logging more often 2011-02-07 18:41:06 +00:00
gocha cb21139402 Commented out r3909 changes, because of Portrait of Ruin warp stone regression.
I guess, not much sure though, gfx3d_IsLinePoly doesn't need to take Z position. Z will be handled well by each renderer, whether it's polygon or line.
2011-02-06 05:17:01 +00:00
gocha 967d00cf34 Fix Increase Pressure hotkey default. 2011-02-06 01:28:45 +00:00
zeromus fd76bc0f6c fix some VRAM_I mirroring and change sprite rendering to memory map per-pixel instead of per-scanline, fixing sprites going over the edge of vram. fixes a lens flare at the end of ff3. also do some housekeeping 2011-02-03 05:23:01 +00:00
zeromus dbcf7e675e add vram test 2011-02-01 22:29:47 +00:00
zeromus ca6c16394e fix some slot-2 addons and bump trunk version number 2011-02-01 21:44:35 +00:00
adelikat 0d4763d281 Lua - fix memory.readdword function (was returning signed values), same fix as r296 of GENS 2011-01-31 15:17:51 +00:00
zeromus de1374a445 test 2011-01-31 05:15:46 +00:00
mtabachenko 98d5d4a597 opps, sorry :( 2011-01-26 15:28:12 +00:00
mtabachenko ac8d9977ee core:
- fixed bug in Alpha Blending Coefficients Register (fix white screen in Star Wars The Force Unleashed 2);
2011-01-26 15:24:59 +00:00
zeromus 430759d54f forgot to add a file!! 2011-01-24 08:47:39 +00:00
zeromus c3f521d09a add arkanoid paddle emulation. also add some emulation of EXMEMCNT bus allocation 2011-01-24 08:28:59 +00:00
zeromus 0eb39e48c3 fix windows desmume vcproj after recent source tree changes 2011-01-19 22:43:41 +00:00
zeromus b6431dda83 ogl renderer: fix line loop detection so that it is aware of the existence of 3d games 2011-01-16 19:01:21 +00:00
zeromus 575d87fc98 rearrange vfat code to be reusable by multiple devices, make slot1-R4 use it, add slot1-fat-dir=/path/to/dir for setting up a fat image for slot-1 devices, rename "compact flash" addon to MPCF, make DLDI-autopatcher not touch roms unless "Default (No interface)" is the current driver (otherwise, your roms intentionally patched with other things will get overwritten) 2011-01-14 03:19:05 +00:00
normmatt234 b14e6f01df Added emulation for 16bit writes to REG_GCROMCTRL.
Reset slot1_device in NDS_Reset.
2011-01-13 04:35:11 +00:00
zeromus 1d2ceefbe9 remove "BX using PC as operand" diagnostic message 2011-01-08 03:32:19 +00:00
mtabachenko 46ecfcf7fd winport:
- add hack for vs2010 build (crash on SoftRasterizer);
2011-01-07 11:25:36 +00:00