------------------------------------------------------------
revno: 9516
committer: Benjamin Wolsey <address@hidden>
branch nick: trunk
timestamp: Tue 2008-07-22 10:37:17 +0200
message:
C++ify gtk_glue_agg.
modified:
gui/gtk_glue_agg.cpp
gui/gtk_glue_agg.h
------------------------------------------------------------
revno: 9507.1.7
committer: Benjamin Wolsey <address@hidden>
branch nick: workingcopy
timestamp: Tue 2008-07-22 10:00:17 +0200
message:
Use a std::string instead of const char* for the pixel format. Use a
boost::scoped_array and operator new instead of C array and realloc,
for the offscreen buffer, which is simpler, standard-compliant and
exception-safe. Reallocate the buffer when it shrinks too (the number
of reallocations could be reduced by taking the chunk size into
account).
Make spacing and brackets consistent throughout gtk_glue_agg.cpp.
Catch std::bad_alloc, add TODO for what to do about it (the same problem
existed before, as the pointer value was checked after realloc).
modified:
gui/gtk_glue_agg.cpp
gui/gtk_glue_agg.h