45 lines
1.3 KiB
Plaintext
45 lines
1.3 KiB
Plaintext
$OpenBSD: patch-Config_h,v 1.4 2011/01/17 11:39:20 dcoppa Exp $
|
|
--- Config.h.orig Fri Oct 31 18:04:08 2008
|
|
+++ Config.h Mon Jan 17 12:14:05 2011
|
|
@@ -37,7 +37,7 @@
|
|
# define CLICK_TOLERANCE 16 //PIXELs
|
|
#else
|
|
# define ITERATION_RATE 60 //fps
|
|
-# define RENDER_RATE 20 //fps
|
|
+# define RENDER_RATE 60 //fps
|
|
# define SOLVER_ITERATIONS 10
|
|
# define JOINT_TOLERANCE 4.0f //PIXELs
|
|
# define SELECT_TOLERANCE 5.0f //PIXELS_PER_METREf)
|
|
@@ -51,7 +51,7 @@
|
|
|
|
|
|
#ifndef INSTALL_BASE_PATH
|
|
-# define INSTALL_BASE_PATH "/usr/share/numptyphysics"
|
|
+# define INSTALL_BASE_PATH "${TRUEPREFIX}/share/numptyphysics"
|
|
#endif
|
|
#define DEFAULT_LEVEL_PATH INSTALL_BASE_PATH
|
|
#define DEFAULT_RESOURCE_PATH DEFAULT_LEVEL_PATH
|
|
@@ -68,10 +68,6 @@
|
|
#endif
|
|
#define USER_LEVEL_PATH USER_BASE_PATH
|
|
|
|
-#define DEMO_TEMP_FILE "/tmp/demo.nph"
|
|
-#define HTTP_TEMP_FILE "/tmp/http.nph"
|
|
-#define SEND_TEMP_FILE "/tmp/mailto:numptyphysics@gmail.com.nph"
|
|
-
|
|
#define ICON_SCALE_FACTOR 4
|
|
|
|
|
|
@@ -92,11 +88,6 @@ class Config
|
|
static const std::string& userDataDir()
|
|
{
|
|
static const std::string d = std::string(getenv("HOME")) + Os::pathSep + USER_BASE_PATH;
|
|
- return d;
|
|
- }
|
|
- static const std::string& planetRoot()
|
|
- {
|
|
- static const std::string d("http://xxx/planet.cgi");
|
|
return d;
|
|
}
|
|
};
|