Proper way to terminate a HPGCC C program after using hpg_set_mode_xxxx()?
|
05-11-2023, 02:05 AM
(This post was last modified: 05-11-2023 01:53 PM by dkostan.)
Post: #1
|
|||
|
|||
Proper way to terminate a HPGCC C program after using hpg_set_mode_xxxx()?
I am on a HP49G+ and am using this mode:
hpg_set_color(hpg_stdscreen, HPG_COLOR_BLACK); hpg_set_mode_gray16(0); Works great I can draw text, boxes, circles etc. However when ending the program it always locks up the calculator, usually a blank screen. I have tried all combination of the below calls and no luck. Does anyone know how to properly cleanup before exiting the program when using the graphics modes? Thank you in advance! WAIT_CANCEL; // wait until ON pressed hpg_cleanup(); hpg_init(); hpg_set_mode_mono(1); hpg_clear(); hpg_set_mode_mono(1); hpg_set_color(hpg_stdscreen,HPG_COLOR_BLACK); return 0; ------------------------------------------------ Prime, 50g,49g+,48gII,48sx,48g, 48gx,71b,75c,28s,28c |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Proper way to terminate a HPGCC C program after using hpg_set_mode_xxxx()? - dkostan - 05-11-2023 02:05 AM
RE: Proper way to terminate a HPGCC C program after using hpg_set_mode_xxxx()? - pier4r - 05-11-2023, 06:00 PM
RE: Proper way to terminate a HPGCC C program after using hpg_set_mode_xxxx()? - dkostan - 05-11-2023, 06:08 PM
RE: Proper way to terminate a HPGCC C program after using hpg_set_mode_xxxx()? - dkostan - 05-11-2023, 08:15 PM
RE: Proper way to terminate a HPGCC C program after using hpg_set_mode_xxxx()? - pier4r - 05-14-2023, 10:26 AM
|
User(s) browsing this thread: 1 Guest(s)