nanogui: Problems with Portrait mode


Previous by date: 23 Feb 2002 16:40:17 -0000 Re: chainies fonts in microwindows., Greg Haerr
Next by date: 23 Feb 2002 16:40:17 -0000 cross-compiling microwin-89pre8 with hardhat, HU Xiang-Hua
Previous in thread: 23 Feb 2002 16:40:17 -0000 Problems with Portrait mode, Emmanuel Blot
Next in thread:

Subject: Re: [nanogui] Problems with Portrait mode
From: "Greg Haerr" ####@####.####
Date: 23 Feb 2002 16:40:17 -0000
Message-Id: <01ee01c1bc86$b7e719a0$3aba46a6@xmission.com>

: Everything works fine with default mode (landscape mode). However, when I try
to use either Right or Left portrait mode, the server fails on an assertion in
fblin16.c:
nano-X: fblin16.c:90: linear16_drawhorzline: Assertion `x2 >= 0 && x2 <
psd->xres' failed.

I added some traces to the server, and recompiled/reran it. The actual values
are:

linear16_drawhorzline: x2=319, xres=320
linear16_drawhorzline: x2=319, xres=320
// n lines like the previous ones, these calls blank the background with the
default color. The important value is xres that equas 320 pixels.

InitializeWindowSystem(): initialising...
->connected to Nano-X server...
initTimers()...
PixType is 5
InitializeWindowSystem()...OK
linear16_drawhorzline: x2=95, xres=10
nano-X: fblin16.c:90: linear16_drawhorzline: Assertion `x2 >= 0 && x2 <
psd->xres' failed.

// Bang! : xres has been reduced down to 10. Why ??


Emmanuel - can you send the sample program that causes this error?
Are you using a widget set or direct nano-X programming.  The
portrait mode orientation should work completely fine with one
major exception: Microwindows doesn't yet handle converting
pixmaps when switching portrait modes.  Everything else should
work fine.



: BTW, I noticed that the C compiler rejects the drivers/kbd_null.c file, since
a function is declared with some parameters and implemented with others
parameters:

I think the proper syntax of line kbd_null.c:12 should be
static int  NUL_Read(MWKEY *buf, MWKEYMOD *modifiers, MWSCANCODE *scancode);

yes - this is correct, I'll fix it in CVS.

Regards,

Greg



Thanks,
Emmanuel.


---------------------------------------------------------------------
To unsubscribe, e-mail: ####@####.####
For additional commands, e-mail: ####@####.####



Previous by date: 23 Feb 2002 16:40:17 -0000 Re: chainies fonts in microwindows., Greg Haerr
Next by date: 23 Feb 2002 16:40:17 -0000 cross-compiling microwin-89pre8 with hardhat, HU Xiang-Hua
Previous in thread: 23 Feb 2002 16:40:17 -0000 Problems with Portrait mode, Emmanuel Blot
Next in thread:


Powered by ezmlm-browse 0.20.