Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » PATCH: Image load progress update
Re: PATCH: Image load progress update [message #4841 is a reply to message #4828] Wed, 23 August 2006 13:12 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
Good idea. Added (but I think you have a small error there, I have changed it to:

	ImageBuffer b(cx, yy - y);
	RGBA* t = b;
	int y0 = y; // <<<!
	while(y < yy) {
		if(progress(y - y0, yy - y0)) // <<<!
			return Null;
		memcpy(t, ~GetLine(y) + x, cx * sizeof(RGBA));
		t += cx;
		y++;
	}


Mirek
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: PATCH: JPG plugin bugfix
Next Topic: GetFontInfo without a Draw object?
Goto Forum:
  


Current Time: Wed May 15 18:07:39 CEST 2024

Total time taken to generate the page: 0.02207 seconds