1656 Commits

Author SHA1 Message Date
Henrik Rydgard
32a75bea46 Add an FLOG if profiler depth goes negative. Make Crash()/FLOG actually crash on win64. 2015-06-11 18:43:59 +02:00
Henrik Rydgard
316d6ab84d Fix another bug in the profiler, that would happily overwrite memory. 2015-06-11 16:00:12 +02:00
Henrik Rydgard
93a7d0c67e Profiler: Handle category 0 correctly when suspending parent categories. Small optimization + sanity checks. 2015-06-11 12:15:38 +02:00
Henrik Rydgard
90c2ef38bd Make Native also target android-22 (oversight) 2015-05-30 21:22:09 +02:00
Henrik Rydgård
9fe3f59aaf Merge pull request #272 from jbeich/xdg-open
Make Launch{Browser,Market,Email} work on any Unix desktop
2015-05-28 12:22:27 +02:00
Jan Beich
de60aad2ab base: fallback to Unix desktop, not mobile 2015-05-26 18:07:43 +03:00
Jan Beich
5984a4aa1c file: sync stat64 #ifdef with ppsspp 2015-05-25 14:37:22 -07:00
Henrik Rydgård
1433440a47 Merge pull request #271 from jbeich/bsd_misc
Miscellaneous portability fixes
2015-05-25 19:04:36 +02:00
Jan Beich
b9b02eb403 DragonFly has bswap* like FreeBSD, Bitrig - like OpenBSD 2015-05-25 19:23:31 +03:00
Jan Beich
7af88bf50e ext/stb_vorbis: alloca() is in stdlib.h on BSDs as well
ext/stb_vorbis/stb_vorbis.c:19:10: fatal error: 'alloca.h' file not found
2015-05-25 19:23:31 +03:00
Jan Beich
babb5036e6 net: don't add #ifdefs for POSIX headers
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/netinet_in.h.html
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/arpa_inet.h.html
2015-05-25 19:23:31 +03:00
Jan Beich
4593b22bbe net: remove dead (pre WaitUntilReady?) code accidentally found via
native/net/http_headers.cpp: In member function 'void http::RequestHeader::ParseHeaders(int)':
native/net/http_headers.cpp:136:12: error: 'timeval' in namespace '::' does not name a type
   struct ::timeval tv;
            ^
native/net/http_headers.cpp:137:6: error: request for member 'tv_sec' in 'tv', which is of non-class type 'int'
   tv.tv_sec = 5;
      ^
native/net/http_headers.cpp:138:6: error: request for member 'tv_usec' in 'tv', which is of non-class type 'int'
   tv.tv_usec = 0;
      ^
2015-05-25 19:22:35 +03:00
Jan Beich
bad9806687 file: extend #ifdef for any recent Unix with large file support by default
At least other BSDs still fail with

file/file_util.cpp: In function 'bool exists(const string&)':
file/file_util.cpp:172:16: error: aggregate 'exists(const string&)::stat64 file_info' has incomplete type and cannot be defined
  struct stat64 file_info;
                ^
file/file_util.cpp:177:46: error: invalid use of incomplete type 'struct exists(const string&)::stat64'
  int result = stat64(copy.c_str(), &file_info);
                                              ^
file/file_util.cpp:172:9: note: forward declaration of 'struct exists(const string&)::stat64'
  struct stat64 file_info;
         ^
file/file_util.cpp: In function 'bool getFileInfo(const char*, FileInfo*)':
file/file_util.cpp:207:16: error: aggregate 'getFileInfo(const char*, FileInfo*)::stat64 file_info' has incomplete type and cannot be defined
  struct stat64 file_info;
                ^
file/file_util.cpp:212:46: error: invalid use of incomplete type 'struct getFileInfo(const char*, FileInfo*)::stat64'
  int result = stat64(copy.c_str(), &file_info);
                                              ^
file/file_util.cpp:207:9: note: forward declaration of 'struct getFileInfo(const char*, FileInfo*)::stat64'
  struct stat64 file_info;
         ^
2015-05-25 19:03:47 +03:00
Henrik Rydgård
81a78e81a9 Merge pull request #270 from unknownbrackets/frame-profiler
Track frame events with sub-events carved out
2015-05-24 23:40:06 +02:00
Unknown W. Brackets
22ab3a4bde Track frame events with sub-events carved out.
Simply by using a fixed-size stack.
2015-05-24 14:34:52 -07:00
Henrik Rydgard
a24f22d4e7 Update Qt to fit new definition of UpdateScreenScale. Does not do the smallwindow check though. 2015-05-21 11:44:35 +02:00
Henrik Rydgard
6ae73b8919 Add a new touch input flag for handling loss of window focus where events get lost 2015-05-21 10:45:49 +02:00
Henrik Rydgard
157b4e2ac9 Didn't mean to leave this on 2015-05-16 01:14:29 +02:00
Henrik Rydgard
05d48b053e Profiler fix for Android, count events 2015-05-15 18:14:39 +02:00
Henrik Rydgard
b9089e5051 Colors don't belong here, let the visualization handle that 2015-05-13 23:34:41 +02:00
Henrik Rydgard
fa1930773f Rewrite the frame profiler 2015-05-13 23:05:11 +02:00
Henrik Rydgard
eefcf86027 Initial profiler work 2015-05-12 23:24:37 +02:00
Henrik Rydgård
dfa3a93d02 Merge pull request #269 from zhykzhykzhyk/master
Add UIContext::DrawTextShadow for drawing text correctly under Qt
2015-05-07 23:20:31 +02:00
zhyk
7d9ff90bec Add UIContext::DrawTextShadow for drawing text correctly under Qt 2015-05-07 11:10:08 +08:00
Henrik Rydgård
2b69711b67 Merge pull request #268 from unknownbrackets/fp16
Retain NaN bits in fp16/fp32 conversions
2015-04-20 08:25:20 +02:00
Unknown W. Brackets
bd6d9a97a5 Retain NaN bits in fp16/fp32 conversions.
This matches PSP behavior better.
2015-04-19 16:07:00 -07:00
Unknown W. Brackets
6c0bc5502b Oops, fix another leak. 2015-04-10 11:48:22 -07:00
Henrik Rydgård
a32668cd1a Merge pull request #267 from unknownbrackets/gl-blacklist
Blacklist NV_shader_framebuffer_fetch on Tegra 3
2015-04-09 09:18:34 +02:00
Unknown W. Brackets
acc1ae6f2e Blacklist NV_shader_framebuffer_fetch on Tegra 3.
Reported to cause rendering problems:
http://forums.ppsspp.org/showthread.php?tid=4481&pid=105487#pid105487
2015-04-08 16:57:17 -07:00
Henrik Rydgård
51531db942 Merge pull request #266 from unknownbrackets/warnings
Validate read size in ReadLocalFile()
2015-04-08 21:46:37 +02:00
Unknown W. Brackets
b9dfb4dbe2 Validate read size in ReadLocalFile(). 2015-04-08 12:06:44 -07:00
Henrik Rydgård
d91ab195c4 Don't use CLOCK_MONOTONIC_RAW on android, it is super choppy on Nexus 9. 2015-04-04 11:27:22 +02:00
Henrik Rydgård
2f5b1c6ebe Add Mupen64's hack around the broken Moga library (that won't work in android 21+) 2015-04-03 11:35:55 +02:00
Henrik Rydgård
98083c8985 UI: Make InfoView focusable, make it possible to make TextView focusable. 2015-04-03 11:14:21 +02:00
Henrik Rydgård
bf4a5f0352 Detect the Android UIMode, use as device type. For better automatic configuration for things like Android TV. 2015-04-03 11:13:38 +02:00
Henrik Rydgård
b083085c76 Merge pull request #262 from unknownbrackets/ini
Support escaped comment marks like # in inis
2015-03-15 15:43:05 +01:00
Unknown W. Brackets
656fe78656 Check for ARM_shader_framebuffer_fetch.
Also, let's combine them too.  Unfortunately, the shader needs a require
that matches the one they have, so we need the individual flags also.
2015-03-07 16:09:17 -08:00
Henrik Rydgard
23150858a4 ARM64: Make sure that eglGetProcAddress is declared, so the return value doesn't get truncated to int. 2015-03-07 13:56:17 +01:00
Henrik Rydgard
516dbf37e4 ARM64 buildfix 2015-03-07 01:30:09 +01:00
Henrik Rydgard
12010bb4ce Revert "Experiment: Disable 24-bit Z and interleaved depth/stencil on mali."
This reverts commit dd1a40653fc3832f3100591bb3def90b33607711.
2015-03-07 01:30:08 +01:00
Henrik Rydgård
3ffd5dda1e Merge pull request #264 from Bigpet/vs2015
Make compilable with VS2015
2015-03-06 21:45:00 +01:00
Peter Tissen
30a362f227 Make compilable with VS2015
So Microsoft decided to make their C runtime conform to C99
2015-03-06 21:01:19 +01:00
Henrik Rydgard
dd1a40653f Experiment: Disable 24-bit Z and interleaved depth/stencil on mali. 2015-03-01 21:01:49 +01:00
Henrik Rydgard
6f3125ac4d UI framework: Make keyboard repeats time-based instead of frame count based 2015-03-01 16:09:52 +01:00
Unknown W. Brackets
b81fcf5d99 Merge pull request #259 from hrydgard/clock-monotonic
clock_gettime(MONOTONIC) seems more appropriate than gettimeofday...
2015-02-28 14:07:32 -08:00
Henrik Rydgård
3efd3841c9 Merge pull request #263 from unknownbrackets/glver
Detect GLES version more accurately
2015-02-28 22:49:59 +01:00
Unknown W. Brackets
77ff1bc1c2 Detect GLES version more accurately. 2015-02-28 12:20:33 -08:00
Unknown W. Brackets
b01f18f331 Support escaped comment marks like \# in inis.
This fixes:
  * Float values like INF and IND.
  * Paths with \# in them.
  * Keys with \# in them (in case of i18n strings.)

A small change in behavior: ; at the start of the line is now always a
comment.  Previously, if the line had a comment already, adding ; to the
front of it would not comment it out.
2015-02-28 10:26:58 -08:00
Henrik Rydgard
52ce9c1118 Fix horizontal scrolling in ScrollViews and horizontal scroll gesture detection
Use this to scroll the tabs in TabHolders, to make more tabs fit on screen.
2015-02-24 00:22:58 +01:00
Unknown W. Brackets
5f863cbbe8 Fix a small warning. 2015-02-22 13:30:35 -08:00