Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Nov 2018 09:19:35 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r485740 - head/graphics/freeimage/files
Message-ID:  <201811240919.wAO9JZXk045617@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon
Date: Sat Nov 24 09:19:35 2018
New Revision: 485740
URL: https://svnweb.freebsd.org/changeset/ports/485740

Log:
  Add patch forgotten in previous commit.  Some code for big-endian
  architectures is obsolete.
  
  PR:		232381
  Submitted by:	Piotr Kubaj

Added:
  head/graphics/freeimage/files/patch-Source_FreeImage_PluginDDS.cpp   (contents, props changed)

Added: head/graphics/freeimage/files/patch-Source_FreeImage_PluginDDS.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/freeimage/files/patch-Source_FreeImage_PluginDDS.cpp	Sat Nov 24 09:19:35 2018	(r485740)
@@ -0,0 +1,17 @@
+--- Source/FreeImage/PluginDDS.cpp.orig	2018-11-18 16:17:59 UTC
++++ Source/FreeImage/PluginDDS.cpp
+@@ -356,14 +356,6 @@ SwapHeader(DDSHEADER *header) {
+ 	for(int i=0; i<11; i++) {
+ 		SwapLong(&header->surfaceDesc.dwReserved1[i]);
+ 	}
+-	SwapLong(&header->surfaceDesc.ddpfPixelFormat.dwSize);
+-	SwapLong(&header->surfaceDesc.ddpfPixelFormat.dwFlags);
+-	SwapLong(&header->surfaceDesc.ddpfPixelFormat.dwFourCC);
+-	SwapLong(&header->surfaceDesc.ddpfPixelFormat.dwRGBBitCount);
+-	SwapLong(&header->surfaceDesc.ddpfPixelFormat.dwRBitMask);
+-	SwapLong(&header->surfaceDesc.ddpfPixelFormat.dwGBitMask);
+-	SwapLong(&header->surfaceDesc.ddpfPixelFormat.dwBBitMask);
+-	SwapLong(&header->surfaceDesc.ddpfPixelFormat.dwRGBAlphaBitMask);
+ 	SwapLong(&header->surfaceDesc.ddsCaps.dwCaps1);
+ 	SwapLong(&header->surfaceDesc.ddsCaps.dwCaps2);
+ 	SwapLong(&header->surfaceDesc.ddsCaps.dwReserved[0]);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811240919.wAO9JZXk045617>