nanogui: Problems with Portrait mode


Previous by date: 19 Feb 2002 11:27:14 -0000 Re: SDL and SMPEG, Greg Haerr
Next by date: 19 Feb 2002 11:27:14 -0000 bitmap efficiency, Emmanuel Blot
Previous in thread:
Next in thread: 19 Feb 2002 11:27:14 -0000 Re: Problems with Portrait mode, Greg Haerr

Subject: Problems with Portrait mode
From: "Emmanuel Blot" ####@####.####
Date: 19 Feb 2002 11:27:14 -0000
Message-Id: <C4986887AFD0FE4FAB6D5EB312E9BDD34B466E@ncemx.smart-fusion.com>

Hi,

I'm a new subscriber to this list, so maybe the answer to my question has already been posted. Plese let me know.

I'm using Nano-X [microwindows-0.89pre8] with an IPAQ handheld device.
I've compiled Nano-X server (client server mode) with the Skiff suite, based on GCC 2.95.3.
The current 'config' file does not include any bitmap type support (no JPEG, PNG, GIF, BMP, XPM, etc.) and uses
  IPAQKBD = Y
  NOMOUSE = Y

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 ??

nxFlushReq: write failed: Broken pipe
[4]+  Aborted                 ./nano-X -L

Any idea ??

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);

Thanks,
Emmanuel.


Previous by date: 19 Feb 2002 11:27:14 -0000 Re: SDL and SMPEG, Greg Haerr
Next by date: 19 Feb 2002 11:27:14 -0000 bitmap efficiency, Emmanuel Blot
Previous in thread:
Next in thread: 19 Feb 2002 11:27:14 -0000 Re: Problems with Portrait mode, Greg Haerr


Powered by ezmlm-browse 0.20.