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

 
 

bug #10120: CL_Sprite::get_frame_surface() bug

Submitter:  None
Submitted:  Mon 23 Aug 2004 11:27:09 PM UTC
   
 
Category:  clanDisplay Severity:  3 - Normal
Item Group:  Incorrect Behaviour Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  0.7.8
Operating System:  GNU/Linux Planned Release:  0.7.8
* Mandatory Fields

Add a New Comment Rich Markup
   

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 Files:
   
   
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

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2004-08-23 None Attached File- Added get_frame_surface_bug.png, #1601

Back to the top

Powered by Savane 3.13-4448.
Corresponding source code