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 » Developing U++ » U++ Developers corner » Graduation thesis - Camouflage - a replacement of(a part of) Chameleon
Re: Graduation thesis - Camouflage - a replacement of(a part of) Chameleon [message #25177 is a reply to message #25121] Sat, 13 February 2010 13:26 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14256
Registered: November 2005
Ultimate Member
[quote title=andrei_natanael wrote on Thu, 11 February 2010 14:11]
unsigned char buffer[12*12*4]; // => imagecx * imagecy * sizeof(RGBA)
Point p1, p2;
CamoGetImage(/* unsigned char */ &buffer, EditText, State_Normal, 12, 12, &p1, &p2);


I still do not quite see the point. So, you have moved implementation to CamoGetImage, OK. This adds a little code here, but can help a bit.

BUT notice that even the organization of code that you consider "common" can be drastically different for XP and Gtk. I am afraid that at some point, you will end with something like:

if(CamoIsPlatform(GTK)) {
....
}
else {
....
}


which will be only a bit worse than today...

That said, I believe that the Ch*.cpp code should get some significant overhaul. And I can still be very wrong about Camo...

Mirek

[Updated on: Sat, 13 February 2010 13:26]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: CodeEditor current caret position mark on gutter
Next Topic: Strange Win7 issue with large fonts...
Goto Forum:
  


Current Time: Wed Apr 30 06:29:00 CEST 2025

Total time taken to generate the page: 0.00693 seconds