[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[MiNT] SWM_REZCHANGE in shel_write()
-------------------------------cut-------------------------------
shel_write() enhancements
-> Sh_wodex value 5 (Changed 9/29/92)
Request the AES to change resolution. The sh_wiscr's value affects
the meaning of sh_wisgr. If AES accepts the resolution change
request, then it will put the system in SHUT DOWN mode. An
application can either shut down and exit or deny to shut down by
sending a AP_TFAIL message to the AES.
a, If sh_wiscr is zero, then sh_wisgr is the physical device id to
perform VDI's open physical workstation call. To get the current
physical device id, do the Getres()+2.
The following are the existing physical device id values:
2 -> 320x200 ST Low
3 -> 640x200 ST Medium
4 -> 640x400 ST High
6 -> 640x480 TT Medium
8 -> 1280x960 TT High
9 -> 320x480 TT Low
b, If sh_wiscr is one, then sh_wisgr is the video mode word for use
in the FALCON030 machine. Sh_wiscr value from 2 and up are
reserved for future use.
-------------------------------cut-------------------------------
int16_t shel_write ( int16_t sh_wdoex, int16_t
sh_wisgr, int16_t sh_wiscr, int8_t *sh_wpcmd, int8_t
*sh_wptail );
N.AES have an extend mode
shel_write(5, vmode, falconflag, &ignorant, NULL)
ignorant is an integer. If shel_write returns null then you can find in
ignorant an App-ID from the programm with do not understand AP_TERM. If it
returns (ignorant) the value -1, then an Shutdown is started, -2 if some of the
parameters are wrong.
MagiC do it like MultiTOS.
Gerhard