bugClanLib - Bugs: bug #6595, after calling CL_Surface.getgc()...

 
 

bug #6595: after calling CL_Surface.getgc() surface is upside down and mirrored

Submitted by:  None
Submitted on:  Mon 17 Nov 2003 11:27:16 AM UTC  
 
Category: clanDisplaySeverity: 3 - Normal
Item Group: Incorrect BehaviourStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: ClosedRelease: None
Operating System: WindowsPlanned Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Mon 17 Nov 2003 11:27:16 AM UTC, original submission:

If I call CL_Surface.getgc() on version 0.7.6, the surface doesn't draw correctly anymore. CL_GraphicContext.flush() must be also called or the program crashes on CL_Surface.draw().

The screenshot is a result of following code (modified ExampleSurface):

CL_Surface *surface1 = load_image_from_file();
CL_Surface *surface2 = load_image_from_resource(&resources);

CL_GraphicContext* graph = surface1->get_gc(); graph->draw_line(0,0,50,50,CL_Color::red);
graph->flush();

while (CL_Keyboard::get_keycode(CL_KEY_ESCAPE) == false)
{
surface1->draw(0, 0);
surface2->draw(0, 200);

CL_Display::flip();
CL_System::sleep(10);
CL_System::keep_alive();
}

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #833:  surface_bug.jpg added by None (22KiB - image/jpeg - Screenshot of 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):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 12 Jan 2004 03:49:14 PM UTCsphairStatusNone=>Fixed
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1