[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[mgp-users 01461] Re: [1.11b] %lcutin trouble



Hi,

From: "Felix E. Klee" <felix.klee@inka.de>
Subject: [mgp-users 01460] [1.11b] %lcutin trouble
Date: Mon, 27 Feb 2006 08:54:18 +0100
Message-ID: <>

 > I've a couple of problems with %lcutin:
 > 
 > * The animations triggered by %lcutin do flicker on my system (Pentium M
 >   1.6 GHz, Radeon 9000 with ATI drivers).  Is there some way to enable
 >   double buffering or similar in order to get rid of the flickering?

Hmm, this doesn't happen in my environment, so I'm not sure if this is 
related to your problem, but the attached patch might help you. 

 > * Consider the following example (before "Bar" there needs to be a tab):
 > 
 >   %tab 1 size 5
 >   %page
 >   Foo
 >       Bar
 > 
 >   If I add %lcutin before "Bar", then suddenly "Bar" appears in the
 >   default font size, not in font size 5 anymore.  A bug? Or, am I doing
 >   something wrong?

hmm, it's a bug. sorry..
As an work around, you can avoid this issue by using %size right after %lcutin.

Thanks,
--
Yoshifumi Nishida
nishida@csl.sony.co.jp

Index: draw.c
===================================================================
RCS file: /usr/cvsroot/mgp/kit/draw.c,v
retrieving revision 1.227
diff -c -r1.227 draw.c
*** draw.c	19 May 2005 16:30:03 -0000	1.227
--- draw.c	1 Mar 2006 17:58:13 -0000
***************
*** 1102,1108 ****
  		XGetWindowAttributes(display, DefaultRootWindow(display), &xa);
  	XTranslateCoordinates(display, window, DefaultRootWindow(display), 
  		0, 0, &root_x ,&root_y, &junkwin);
! 	use_copy = 1;
  	if ((root_x + window_width > xa.width) || (root_y + window_height > xa.height) ||
  			(root_x < 0 || root_y < 0)) use_copy = 1;
  
--- 1102,1108 ----
  		XGetWindowAttributes(display, DefaultRootWindow(display), &xa);
  	XTranslateCoordinates(display, window, DefaultRootWindow(display), 
  		0, 0, &root_x ,&root_y, &junkwin);
! 	use_copy = 0;
  	if ((root_x + window_width > xa.width) || (root_y + window_height > xa.height) ||
  			(root_x < 0 || root_y < 0)) use_copy = 1;