I use AES wind_get "WF_WORKXYWH" to convert the window size to working size:
Code: Select all
/* Get window work area*/
wind_get( WINDOW_handle, WF_WORKXYWH, &WindWork.g_x, &WindWork.g_y, &WindWork.g_w, &WindWork.g_h );
And now I wonder if there is a reverse function that converts the working size to window size.
I have a 100x200px panel and I would like to open a new window that will fit this panel.
I've tried this one but without success:
Code: Select all
/* set new window size */
wind_set( WINDOW_handle, WF_WORKXYWH, WindWork.g_x, WindWork.g_y, WindWork.g_w, WindWork.g_h );
/* get new window size */
wind_get( WINDOW_handle, WF_CURRXYWH, &WindSize.g_x, &WindSize.g_y, &WindSize.g_w, &WindSize.g_h );
ATW800/2 / V4sa / Lynx I / Mega ST 1 / 7800 / Portfolio / Lynx II / Jaguar / TT030 / Mega STe / 800 XL / 1040 STe / Falcon030 / 65 XE / 520 STm / SM124 / SC1435
DDD HDD / AT Speed C16 / TF536 / SDrive / PAK68/3 / Lynx Multi Card / LDW Super 2000 / XCA12 / SkunkBoard / CosmosEx / SatanDisk / UltraSatan / USB Floppy Drive Emulator / Eiffel / SIO2PC / Crazy Dots / PAM Net
http://260ste.atari.org