remove left overs
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15779 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
e067fed541
commit
35cf9ee250
@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
#include "PNGDump.h"
|
#include "PNGDump.h"
|
||||||
|
|
||||||
#include <new>
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -31,13 +30,10 @@
|
|||||||
# define TRACE(x) ;
|
# define TRACE(x) ;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using std::nothrow;
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
SaveToPNG(const char* filename, const BRect& bounds, color_space space,
|
SaveToPNG(const char* filename, const BRect& bounds, color_space space,
|
||||||
const void* bits, int32 bitsLength, int32 bytesPerRow)
|
const void* bits, int32 bitsLength, int32 bytesPerRow)
|
||||||
{
|
{
|
||||||
bigtime_t now = system_time();
|
|
||||||
int32 width = bounds.IntegerWidth() + 1;
|
int32 width = bounds.IntegerWidth() + 1;
|
||||||
int32 height = bounds.IntegerHeight() + 1;
|
int32 height = bounds.IntegerHeight() + 1;
|
||||||
|
|
||||||
@ -109,6 +105,5 @@ bigtime_t now = system_time();
|
|||||||
png_destroy_write_struct(&png, NULL);
|
png_destroy_write_struct(&png, NULL);
|
||||||
|
|
||||||
fclose(file);
|
fclose(file);
|
||||||
printf("PNG Dump: %lld\n", system_time() - now);
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user