477 Commits

Author SHA1 Message Date
sinamas
4d9748cdb8 gambatte_sdl: name constants 2013-03-15 19:57:11 +01:00
sinamas
26843aeb96 gambatte_sdl: reduce variable scope 2013-03-15 19:45:04 +01:00
sinamas
1002e77443 gambatte_sdl: name condition 2013-03-13 23:46:11 +01:00
sinamas
03f1756e03 gambatte_sdl: name return value 2013-03-13 23:42:07 +01:00
sinamas
c1c86e2b81 gambatte_sdl: generate desc string on demand now that it's possible 2013-03-13 22:44:34 +01:00
sinamas
19a6e52e35 gambatte_sdl/DescOption: use std::string 2013-03-13 22:41:50 +01:00
sinamas
870a942cfd gambatte_sdl: readability/formatting 2013-03-13 22:34:38 +01:00
sinamas
6096fec767 gambatte_sdl: use sizeof array rather than repeat constant 2013-03-13 21:25:47 +01:00
sinamas
fa7d46cfb0 gambatte_sdl: use std::for_each 2013-03-13 21:21:12 +01:00
sinamas
898b732a9c gambatte_sdl: use value_type 2013-03-13 21:12:33 +01:00
sinamas
345db3a27c gambatte_sdl: use make_pair 2013-03-13 21:11:29 +01:00
sinamas
846a09543a gambatte_sdl: move members to method scope 2013-03-13 21:06:41 +01:00
sinamas
36eeb1f1f5 gambatte_sdl: s/NULL/0 2013-03-13 18:39:18 +01:00
sinamas
464050ba49 gambatte_sdl: replace printf with puts 2013-03-13 18:31:36 +01:00
sinamas
0bd4ac48f3 gambatte_sdl: move event handling to a separate method 2013-03-13 18:28:50 +01:00
sinamas
2b585c5bec gambatte_sdl: blitter cleanup 2013-03-12 20:50:06 +01:00
sinamas
b295ccd65f gambatte_sdl/audiodata: cleanup. use smart_ptrs for sdl frees. 2013-03-11 23:08:39 +01:00
sinamas
ed230c296a ringbuf: use array size in fill 2013-03-11 23:01:03 +01:00
sinamas
643f95b77c gambatte_sdl: fix print help exit success derp introduced in
44b6913a3ab7f2ecc1eca2abdbf0953d904b34d9

kill failed boolean. use EXIT_FAILURE.
initialize all members.
2013-03-11 22:57:19 +01:00
sinamas
8e0ccda3ee auto_vec: disallow element assignment. add reset method. 2013-03-11 21:28:09 +01:00
sinamas
53e10b83ea defined_ptr: lower case defined_deleter 2013-03-10 18:52:15 +01:00
sinamas
41877324b3 qglblitter: hide class definition 2013-03-10 18:25:32 +01:00
sinamas
13167187f9 xvblitter: hide class definition. improve shm error checking. cleanup.
use perror.
name constants.
drop some superfluous XSyncs.
2013-03-10 18:25:32 +01:00
sinamas
3283a08bb8 qpainterblitter: hide class definition 2013-03-10 18:25:32 +01:00
sinamas
37c0d3c7fc qglblitter: use QGLContext::getProcAddress rather than custom version
delete now unused x11getprocaddress.
2013-03-10 18:25:32 +01:00
sinamas
1ac47ad140 qglblitter: only create subwidget when used
avoid stale state hanging around.
more proper use of initializeGL.

add some conservative use of makeCurrent again and hope that we do
not run into common driver bugs this time.
2013-03-10 18:25:32 +01:00
sinamas
819dc1b16b swscale: support srcpitch. less casting. gcc x86 tweaks. 2013-03-10 18:25:31 +01:00
sinamas
43f53fde1d x11blitter: update new frontImage from backImage on resize if paused
make an effort to avoid losing paused picture on resize.
2013-03-10 18:25:31 +01:00
sinamas
5ceafb0e9e x11blitter: use image abstraction rather than subblitter abstraction
avoid touching back buffer on resize.
lock-free resizing.
more error checking.
use perror.
2013-03-10 18:25:31 +01:00
sinamas
3a585e703a x11blitter: hide class definition
get rid of Visual void *.
2013-03-10 18:25:31 +01:00
sinamas
c127146a55 x11blitter: use smart_ptrs to handle XFrees 2013-03-10 18:25:31 +01:00
sinamas
0e8c4fcb53 xvblitter: use smart_ptrs to handle XFrees 2013-03-10 18:25:30 +01:00
sinamas
81bd599064 common: add smart_ptr deleter template parameter 2013-03-10 18:25:30 +01:00
sinamas
3854550a19 qpainterblitter: update new frontbuffer from backbuffer on resize
make an effort to keep image data on resize.
2013-03-10 18:25:30 +01:00
sinamas
af7a84b1b2 qpainterblitter: always use image back buffer
get rid of union.
avoid touching back buffer on resize.
lock-free resize.
2013-03-10 18:25:30 +01:00
sinamas
4eab2ebe5f gambatte_qt/framework/qglblitter: formatting/readability/cleanup 2013-03-10 18:25:29 +01:00
sinamas
d68d5b9315 gambatte_qt/framework/qglblitter: clear thrice
more behind-your-back triple buffer semantics leaking through.

there does not seem to be any guarantee for how many buffers are actually
used with "double-buffered" opengl, but more than 3 seems unlikely.

contrary to popular belief avoiding clears actually matters in some relevant
scenarios, so let's just bump the number of clears to 3 and move on.
2013-03-10 18:24:10 +01:00
sinamas
1733b63057 gambatte_qt/gambattesource: drop use of volatile
the intention was probably to enforce ordering between stores to volatile
variables within the same thread, but that does not seem important here and
there's also no guarantee that they will be seen in that order from other
threads (which I knew so it must have been meant as an "increase probability"
thing), so it mostly just adds confusion and looks silly.
2013-02-27 22:20:58 +01:00
sinamas
a2fa681759 gambatte_qt/framework/xvblitter: formatting/readability/cleanup 2013-02-27 21:30:29 +01:00
sinamas
9a1dec4e08 gambatte_qt/framework/x11blitter: formatting/readability/cleanup 2013-02-27 21:28:43 +01:00
sinamas
abbd16ae5e gambatte_qt: use ptrdiff_t to represent pitch 2013-02-27 21:20:11 +01:00
sinamas
06e79c9dce gambatte_sdl: use ptrdiff_t to represent pitch 2013-02-26 19:44:28 +01:00
sinamas
5c68d732da common/videolink: use ptrdiff_t to represent pitch 2013-02-26 19:44:27 +01:00
sinamas
0dc28b7d7f libgambatte: use ptrdiff_t to represent pitch 2013-02-26 19:44:19 +01:00
sinamas
d445cbd9c7 libgambatte/gambatte: formatting/readability 2013-02-26 19:43:29 +01:00
sinamas
e43c5b07f6 libgambatte/cpu: less magic HF2 constants 2013-02-25 22:44:19 +01:00
sinamas
f70cf21f38 libgambatte/ppu: superflous mask 2013-02-25 21:56:11 +01:00
sinamas
3014b1edaf libgambatte/cpu: drop f/from_f macros 2013-02-25 21:56:04 +01:00
sinamas
8c6a1150bd libgambatte/cpu: formatting/readability 2013-02-25 21:55:37 +01:00
sinamas
25d2aef228 libgambatte/sound: formatting/readability 2013-02-25 21:55:22 +01:00