svn commit: r500122 - head/graphics/exact-image/files

Alexey Dokuchaev danfe at FreeBSD.org
Fri Apr 26 17:55:36 UTC 2019


Author: danfe
Date: Fri Apr 26 17:55:35 2019
New Revision: 500122
URL: https://svnweb.freebsd.org/changeset/ports/500122

Log:
  Return proper write() status from RAWCodec::writeImage() function.  This is
  not enough to disentangle the port from C++98, but a good change regardless.

Added:
  head/graphics/exact-image/files/patch-codecs_raw.cc   (contents, props changed)

Added: head/graphics/exact-image/files/patch-codecs_raw.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/exact-image/files/patch-codecs_raw.cc	Fri Apr 26 17:55:35 2019	(r500122)
@@ -0,0 +1,14 @@
+--- codecs/raw.cc.orig	2011-01-14 16:30:13 UTC
++++ codecs/raw.cc
+@@ -71,9 +71,8 @@ bool RAWCodec::writeImage (std::ostream* stream, Image
+   if (!image.getRawData())
+     return false;
+ 
+-  return stream->write ((char*)image.getRawData(), image.stride()*image.h)
+-    /* ==
+-       (size_t) image.stride()*image.h*/;
++  stream->write ((char*)image.getRawData(), image.stride()*image.h);
++  return stream->good();
+ }
+ 
+ RAWCodec raw_loader;


More information about the svn-ports-all mailing list