diff options
Diffstat (limited to 'util/fbrun/main.cc')
-rw-r--r-- | util/fbrun/main.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/util/fbrun/main.cc b/util/fbrun/main.cc index eb6758f..b68ea83 100644 --- a/util/fbrun/main.cc +++ b/util/fbrun/main.cc | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: main.cc,v 1.10 2003/08/25 01:30:46 fluxgen Exp $ | 22 | // $Id: main.cc,v 1.11 2003/12/01 18:58:53 fluxgen Exp $ |
23 | 23 | ||
24 | #include "FbRun.hh" | 24 | #include "FbRun.hh" |
25 | #include "App.hh" | 25 | #include "App.hh" |
@@ -45,7 +45,7 @@ void showUsage(const char *progname) { | |||
45 | " -pos [x] [y] Window position in pixels"<<endl<< | 45 | " -pos [x] [y] Window position in pixels"<<endl<< |
46 | " -fg [color name] Foreground text color"<<endl<< | 46 | " -fg [color name] Foreground text color"<<endl<< |
47 | " -bg [color name] Background color"<<endl<< | 47 | " -bg [color name] Background color"<<endl<< |
48 | " -a Antialias"<<endl<< | 48 | " -na Disable antialias"<<endl<< |
49 | " -hf [history file] History file to load (default ~/.fluxbox/fbrun_history)"<<endl<< | 49 | " -hf [history file] History file to load (default ~/.fluxbox/fbrun_history)"<<endl<< |
50 | " -help Show this help"<<endl<<endl<< | 50 | " -help Show this help"<<endl<<endl<< |
51 | "Example: fbrun -fg black -bg white -text xterm -title \"run xterm\""<<endl; | 51 | "Example: fbrun -fg black -bg white -text xterm -title \"run xterm\""<<endl; |
@@ -56,7 +56,7 @@ int main(int argc, char **argv) { | |||
56 | size_t width = 200, height = 32; // default size of window | 56 | size_t width = 200, height = 32; // default size of window |
57 | bool set_height = false, set_width=false; // use height/width of font by default | 57 | bool set_height = false, set_width=false; // use height/width of font by default |
58 | bool set_pos = false; // set position | 58 | bool set_pos = false; // set position |
59 | bool antialias = false; // antialias text | 59 | bool antialias = true; // antialias text |
60 | string fontname; // font name | 60 | string fontname; // font name |
61 | string title("Run program"); // default title | 61 | string title("Run program"); // default title |
62 | string text; // default input text | 62 | string text; // default input text |
@@ -88,8 +88,8 @@ int main(int argc, char **argv) { | |||
88 | foreground = argv[++i]; | 88 | foreground = argv[++i]; |
89 | } else if (strcmp(argv[i], "-bg") == 0 && i+1 < argc) { | 89 | } else if (strcmp(argv[i], "-bg") == 0 && i+1 < argc) { |
90 | background = argv[++i]; | 90 | background = argv[++i]; |
91 | } else if (strcmp(argv[i], "-a") == 0) { | 91 | } else if (strcmp(argv[i], "-na") == 0) { |
92 | antialias = true; | 92 | antialias = false; |
93 | } else if (strcmp(argv[i], "-hf") == 0 && i+1 < argc) { | 93 | } else if (strcmp(argv[i], "-hf") == 0 && i+1 < argc) { |
94 | history_file = argv[++i]; | 94 | history_file = argv[++i]; |
95 | } else if (strcmp(argv[i], "-h") == 0 || strcmp(argv[i], "-help") == 0) { | 95 | } else if (strcmp(argv[i], "-h") == 0 || strcmp(argv[i], "-help") == 0) { |
@@ -108,6 +108,8 @@ int main(int argc, char **argv) { | |||
108 | FbTk::App application(display_name.c_str()); | 108 | FbTk::App application(display_name.c_str()); |
109 | FbRun fbrun; | 109 | FbRun fbrun; |
110 | 110 | ||
111 | fbrun.setAntialias(antialias); | ||
112 | |||
111 | if (fontname.size() != 0) { | 113 | if (fontname.size() != 0) { |
112 | if (!fbrun.loadFont(fontname.c_str())) { | 114 | if (!fbrun.loadFont(fontname.c_str())) { |
113 | cerr<<"Failed to load font: "<<fontname<<endl; | 115 | cerr<<"Failed to load font: "<<fontname<<endl; |