diff --git a/VERSION b/VERSION index c3eefbdf..611a2759 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -B1-90-gc71e5c63ca+1 \ No newline at end of file +B1-91-g7a96c9fe24+1 \ No newline at end of file diff --git a/common/include/common/sysinfo.h b/common/include/common/sysinfo.h index dd7121a0..4296be67 100644 --- a/common/include/common/sysinfo.h +++ b/common/include/common/sysinfo.h @@ -18,4 +18,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA */ // returns the maximum number of multisamples supported by the system -int sysinfo_gfx_max_multisample(); \ No newline at end of file +int sysinfo_gfx_max_multisample(); + +// returns the page size +long sysinfo_getPageSize(); \ No newline at end of file diff --git a/common/src/platform/linux/sysinfo.c b/common/src/platform/linux/sysinfo.c index 7411b226..d73d93e5 100644 --- a/common/src/platform/linux/sysinfo.c +++ b/common/src/platform/linux/sysinfo.c @@ -17,6 +17,7 @@ this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include #include int sysinfo_gfx_max_multisample() @@ -61,4 +62,9 @@ int sysinfo_gfx_max_multisample() XCloseDisplay(dpy); return maxSamples; +} + +long sysinfo_getPageSize() +{ + return sysconf(_SC_PAGESIZE); } \ No newline at end of file diff --git a/common/src/platform/windows/sysinfo.c b/common/src/platform/windows/sysinfo.c index 6ccd671a..168b318a 100644 --- a/common/src/platform/windows/sysinfo.c +++ b/common/src/platform/windows/sysinfo.c @@ -17,8 +17,17 @@ this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include + int sysinfo_gfx_max_multisample() { //FIXME: Implement this return 4; +} + +long sysinfo_getPageSize() +{ + SYSTEM_INFO si; + GetSystemInfo(&si); + return si.dwPageSize; } \ No newline at end of file