### Author Topic: HP PPL issue with LINE_P() and/or BLIT_P  (Read 1506 times)

0 Members and 1 Guest are viewing this topic.

#### DJ Omnimaga

• Former TI programmer
• CoT Emeritus
• LV15 Omnimagician (Next: --)
• Posts: 55839
• Rating: +3151/-232
• CodeWalrus founder & retired Omnimaga founder
##### HP PPL issue with LINE_P() and/or BLIT_P
« on: November 06, 2014, 04:47:11 pm »
I would need explanation on why the following code doesn't do anything at all:

Code: [Select]
EXPORT init()BEGINDIMGROB_P(G8,16,16);LINE_P(G8,0,0,15,15,#FF0000);INVERT_P(G8,3,3,8,8);BLIT_P(G0,0,0,32,32,G8,0,0,16,16);END;
I can't seem to figure out what I am doing wrong, considering I used line with the same syntax before and in this scenario, even INVERT_P does nothing. I am trying to draw something inside a 16x16 GROB placed in G8, then paste it over the screen.

EDIT: Nevermind, it works in this example. It's because I was using the code inside a sub-routine in my program, except that I had called the sub-routine from the wrong location >.<. My bad. I also had two LINE_P coordinates inverted it seems.
« Last Edit: November 06, 2014, 05:00:17 pm by DJ Omnimaga »
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF