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

0 Members and 1 Guest are viewing this topic.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
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()
BEGIN
DIMGROB_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 »