f-spot r3976 - trunk/src
- From: sdelcroix svn gnome org
- To: svn-commits-list gnome org
- Subject: f-spot r3976 - trunk/src
- Date: Fri, 23 May 2008 07:24:30 +0000 (UTC)
Author: sdelcroix
Date: Fri May 23 07:24:30 2008
New Revision: 3976
URL: http://svn.gnome.org/viewvc/f-spot?rev=3976&view=rev
Log:
shutting some debug outputs
Modified:
trunk/src/Texture.cs
Modified: trunk/src/Texture.cs
==============================================================================
--- trunk/src/Texture.cs (original)
+++ trunk/src/Texture.cs Fri May 23 07:24:30 2008
@@ -16,6 +16,7 @@
using Cairo;
using System.Runtime.InteropServices;
using FSpot.Widgets;
+using FSpot.Utils;
namespace FSpot {
public class TextureException : System.Exception {
@@ -87,7 +88,7 @@
int max_size;
Gl.glGetIntegerv (Gl.GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB, out max_size);
float scale = (float)Math.Min (1.0, max_size / (double) Math.Max (width, height));
- System.Console.WriteLine ("max texture size {0} scaling to {1}", max_size, scale);
+ //Log.DebugFormat ("max texture size {0} scaling to {1}", max_size, scale);
if (surface.DataPtr == IntPtr.Zero)
throw new TextureException ("Surface has no data");
@@ -101,7 +102,7 @@
int swidth = (int)(width * scale);
int sheight = (int) (height * scale);
tmp = Marshal.AllocHGlobal (swidth * sheight * 4);
- System.Console.WriteLine ("scaling image {0} x {1}", swidth, sheight);
+ //LogDebugFormat ("scaling image {0} x {1}", swidth, sheight);
Glu.gluScaleImage (Gl.GL_BGRA,
width,
@@ -132,7 +133,7 @@
Marshal.FreeHGlobal (tmp);
if (Gl.glGetError () != Gl.GL_NO_ERROR)
- System.Console.WriteLine ("unable to allocate texture");
+ Log.Warning ("unable to allocate texture");
// throw new TextureException ("Unable to allocate texture resources");
return texture_id;
@@ -140,10 +141,10 @@
protected void Close ()
{
- System.Console.WriteLine ("Disposing {0} IsTexture {1}", texture_id, Gl.glIsTexture (texture_id));
+ //Log.DebugFormat ("Disposing {0} IsTexture {1}", texture_id, Gl.glIsTexture (texture_id));
int [] ids = new int [] { texture_id };
Gl.glDeleteTextures (1, ids);
- System.Console.WriteLine ("Done Disposing {0}", ids [0]);
+ //Log.DebugFormat ("Done Disposing {0}", ids [0]);
}
public void Dispose ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]