all repos — fluxbox @ f1b4d08628d388f0273d9ef80394e5005d23a9ee

custom fork of the fluxbox windowmanager

fixed bug with antialais switch, antialias now enabled by default
fluxgen fluxgen
commit

f1b4d08628d388f0273d9ef80394e5005d23a9ee

parent

70937e17af1637e14b3d1e2a6668f8e73774ca6a

1 files changed, 7 insertions(+), 5 deletions(-)

jump to
M util/fbrun/main.ccutil/fbrun/main.cc

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: main.cc,v 1.10 2003/08/25 01:30:46 fluxgen Exp $ +// $Id: main.cc,v 1.11 2003/12/01 18:58:53 fluxgen Exp $ #include "FbRun.hh" #include "App.hh"

@@ -45,7 +45,7 @@ " -display [display string] Display name"<<endl<<

" -pos [x] [y] Window position in pixels"<<endl<< " -fg [color name] Foreground text color"<<endl<< " -bg [color name] Background color"<<endl<< - " -a Antialias"<<endl<< + " -na Disable antialias"<<endl<< " -hf [history file] History file to load (default ~/.fluxbox/fbrun_history)"<<endl<< " -help Show this help"<<endl<<endl<< "Example: fbrun -fg black -bg white -text xterm -title \"run xterm\""<<endl;

@@ -56,7 +56,7 @@ int x = 0, y = 0; // default pos of window

size_t width = 200, height = 32; // default size of window bool set_height = false, set_width=false; // use height/width of font by default bool set_pos = false; // set position - bool antialias = false; // antialias text + bool antialias = true; // antialias text string fontname; // font name string title("Run program"); // default title string text; // default input text

@@ -88,8 +88,8 @@ } else if (strcmp(argv[i], "-fg") == 0 && i+1 < argc) {

foreground = argv[++i]; } else if (strcmp(argv[i], "-bg") == 0 && i+1 < argc) { background = argv[++i]; - } else if (strcmp(argv[i], "-a") == 0) { - antialias = true; + } else if (strcmp(argv[i], "-na") == 0) { + antialias = false; } else if (strcmp(argv[i], "-hf") == 0 && i+1 < argc) { history_file = argv[++i]; } else if (strcmp(argv[i], "-h") == 0 || strcmp(argv[i], "-help") == 0) {

@@ -107,6 +107,8 @@ try {

FbTk::App application(display_name.c_str()); FbRun fbrun; + + fbrun.setAntialias(antialias); if (fontname.size() != 0) { if (!fbrun.loadFont(fontname.c_str())) {