aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-11-25 14:07:21 (GMT)
committerfluxgen <fluxgen>2002-11-25 14:07:21 (GMT)
commit99c92a637392a988382559d0b162aed68ab83ba8 (patch)
treed353aa10684ed0814327a64e9aef041510e08a41 /src/Screen.cc
parent1fc16d3d3d8a62a9697f4a42044b695707fe5d50 (diff)
downloadfluxbox_pavel-99c92a637392a988382559d0b162aed68ab83ba8.zip
fluxbox_pavel-99c92a637392a988382559d0b162aed68ab83ba8.tar.bz2
fixed rotated text on vertical tab in XFontImp and a rotate function in FontImp interface
Diffstat (limited to 'src/Screen.cc')
-rw-r--r--src/Screen.cc18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index 880e13c..1d885be 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Screen.cc,v 1.83 2002/11/24 20:56:06 fluxgen Exp $ 25// $Id: Screen.cc,v 1.84 2002/11/25 14:07:21 fluxgen Exp $
26 26
27 27
28#include "Screen.hh" 28#include "Screen.hh"
@@ -286,6 +286,13 @@ resource(rm, screenname, altscreenname)
286 image_control, fluxbox->getStyleFilename(), getRootCommand().c_str()); 286 image_control, fluxbox->getStyleFilename(), getRootCommand().c_str());
287 287
288 theme->reconfigure(*resource.antialias); 288 theme->reconfigure(*resource.antialias);
289 // special case for tab rotated
290 if (*resource.tab_rotate_vertical &&
291 ( *resource.tab_placement == Tab::PLEFT || *resource.tab_placement == Tab::PRIGHT)) {
292 theme->getWindowStyle().tab.font.rotate(90);
293 } else {
294 theme->getWindowStyle().tab.font.rotate(0);
295 }
289 296
290 const char *s = i18n->getMessage( 297 const char *s = i18n->getMessage(
291 FBNLS::ScreenSet, FBNLS::ScreenPositionLength, 298 FBNLS::ScreenSet, FBNLS::ScreenPositionLength,
@@ -504,7 +511,14 @@ void BScreen::reconfigure() {
504 theme->setRootCommand(getRootCommand()); 511 theme->setRootCommand(getRootCommand());
505 theme->load(Fluxbox::instance()->getStyleFilename()); 512 theme->load(Fluxbox::instance()->getStyleFilename());
506 theme->reconfigure(*resource.antialias); 513 theme->reconfigure(*resource.antialias);
507 514 // special case for tab rotated
515 if (*resource.tab_rotate_vertical &&
516 ( *resource.tab_placement == Tab::PLEFT || *resource.tab_placement == Tab::PRIGHT)) {
517 theme->getWindowStyle().tab.font.rotate(90);
518 } else {
519 theme->getWindowStyle().tab.font.rotate(0);
520 }
521
508 I18n *i18n = I18n::instance(); 522 I18n *i18n = I18n::instance();
509 523
510 const char *s = i18n->getMessage( 524 const char *s = i18n->getMessage(