bugClanLib - Bugs: bug #10120, CL_Sprite::get_frame_surface() bug

 
 

bug #10120: CL_Sprite::get_frame_surface() bug

Submitted by:  None
Submitted on:  Mon 23 Aug 2004 11:27:09 PM UTC  
 
Category: clanDisplaySeverity: 3 - Normal
Item Group: Incorrect BehaviourStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: 0.7.8
Operating System: GNU/LinuxPlanned Release: 0.7.8

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 24 Aug 2004 03:29:32 PM UTC, comment #1:

It's not a bug, it's a feature :-)

Sprite use "packing", so all frames are stored in the same surface, but the position of the frame in the surface change.

Bye, Haypo

Anonymous
Mon 23 Aug 2004 11:27:09 PM UTC, original submission:

Hi,

I have a sprite : 12x12 pixels with 16 frames (from a PNG picture : 192x12 pixels).

When a try to get the surface of a sprite, get_frame_surface() return a 64x64 pixels surface !

See attached example picture. Original picture :
http://cvs.gna.org/viewcvs/wormux/wormux/data/weapon/dynamite.png?rev=1.1&content-type=text/vnd.viewcvs-markup

Resource :
<sprite name="dynamite">
<image file="weapon/dynamite.png">
<grid size="12,12" array="16,1" />
</image>
</sprite>

Bye, Haypo

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #1672:  get_frame_surface_bug.png added by None (7KiB - image/png - Example of the bug)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follows 1 latest change.

Date Changed By Updated Field Previous Value => Replaced By
Mon 23 Aug 2004 11:27:09 PM UTCNoneAttached File-=>Added get_frame_surface_bug.png, #1601

Back to the top


Powered by Savane 3.1-cleanup1