[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
GrSetPortraitMode() DOWN mode is not right
From: Jeffrey A Angielski ####@####.#### Date: 21 Mar 2002 16:33:53 -0000 Message-Id: <200203211627.LAA07308@kilby.brackett.com> When calling GrSetPortraitMode(MWPORTRAIT_DOWN) the video is flipped and not rotated. What this means is that any text you were originally displaying is intelligible. Is there any fixes for this "feature" or workarounds? Incidentally, all the other portrait modes (x_LEFT, x_RIGHT, x_NONE) work great. It is just the DOWN that is goofy. Here is the small example program that demonstrates this problem: --------------------------------------------------------------------------------- #include <FL/Fl.H> #include <FL/Fl_Window.H> #include <FL/Fl_Button.H> #include <include/nano-X.h> Fl_Window *window; int current_mode=MWPORTRAIT_NONE; void button_callback(Fl_Widget *widget, void *data) { switch(current_mode) { case MWPORTRAIT_NONE: current_mode=MWPORTRAIT_LEFT; break; case MWPORTRAIT_LEFT: current_mode=MWPORTRAIT_RIGHT; break; case MWPORTRAIT_RIGHT: current_mode=MWPORTRAIT_DOWN; break; case MWPORTRAIT_DOWN: current_mode=MWPORTRAIT_NONE; break; } GrSetPortraitMode(current_mode); window->redraw(); } int main(int argc, char **argv) { current_mode = 0; window = new Fl_Window(150,200); Fl_Button *button = new Fl_Button(10,10,140,190,"Touch me\n to change\n orientation"); button->callback(button_callback); button->labelsize(24); button->labelfont(FL_BOLD+FL_ITALIC); button->labeltype(FL_SHADOW_LABEL); window->end(); window->show(argc, argv); return Fl::run(); } -- ==================================================== Jeff Angielski 703.405.6896 Principal Engineer ####@####.#### www.ThePTRGroup.com Embedded, Real-Time Solutions ==================================================== | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |