setIcon is acting weird

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
Lua Hal
Citizen
Posts: 58
Joined: Tue Jul 12, 2011 10:30 pm

setIcon is acting weird

Post by Lua Hal »

This is the result I get when I attempt to set the icon as a solid 16x16 square of magenta 100% transparent... It looks identical to the result of setting a blank 16x16 ImageData as the icon, but the pixels that are visible are magenta instead of black. "true" is the output of setIcon.
Attachments
screenshot.png
screenshot.png (1.91 KiB) Viewed 2076 times
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: setIcon is acting weird

Post by Ranguna259 »

Try setting black or white transparent instead of magenta transparent
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.
User avatar
Lua Hal
Citizen
Posts: 58
Joined: Tue Jul 12, 2011 10:30 pm

Re: setIcon is acting weird

Post by Lua Hal »

The exact same thing happens except the pixels visible are black or white.
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: setIcon is acting weird

Post by Ranguna259 »

What format is the image ?
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.
User avatar
Lua Hal
Citizen
Posts: 58
Joined: Tue Jul 12, 2011 10:30 pm

Re: setIcon is acting weird

Post by Lua Hal »

It is ImageData...
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: setIcon is acting weird

Post by Ranguna259 »

But do you load it from an image ? png, jpg, bmp...
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.
User avatar
Lua Hal
Citizen
Posts: 58
Joined: Tue Jul 12, 2011 10:30 pm

Re: setIcon is acting weird

Post by Lua Hal »

No.
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: setIcon is acting weird

Post by Ranguna259 »

Hmmmm... Devs, can any of you shed some light in here ?
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: setIcon is acting weird

Post by josefnpat »

Please share a .love that replicates this issue.
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
User avatar
Lua Hal
Citizen
Posts: 58
Joined: Tue Jul 12, 2011 10:30 pm

Re: setIcon is acting weird

Post by Lua Hal »

This is doing it.
Attachments
icon.love
(271 Bytes) Downloaded 82 times
Post Reply

Who is online

Users browsing this forum: No registered users and 37 guests