diff options
author | Carsten Weisse <[email protected]> | 2006-11-22 15:05:39 +0000 |
---|---|---|
committer | Carsten Weisse <[email protected]> | 2006-11-22 15:05:39 +0000 |
commit | b6b2ebd4ee974ff03943275fa20289a83b549161 (patch) | |
tree | b2baf5b923bcba186d797350d64cea019ae90106 /src/jake2/render/fast | |
parent | 60a03cf93bfcafa6fc542bcaacd6fe0d28072caf (diff) |
better driver dependent screenshot handling
Diffstat (limited to 'src/jake2/render/fast')
-rw-r--r-- | src/jake2/render/fast/Main.java | 6 | ||||
-rw-r--r-- | src/jake2/render/fast/Misc.java | 12 |
2 files changed, 8 insertions, 10 deletions
diff --git a/src/jake2/render/fast/Main.java b/src/jake2/render/fast/Main.java index a40bc94..1bb6d07 100644 --- a/src/jake2/render/fast/Main.java +++ b/src/jake2/render/fast/Main.java @@ -2,7 +2,7 @@ * Main.java * Copyright (C) 2003 * - * $Id: Main.java,v 1.3 2006-11-21 02:22:19 cawe Exp $ + * $Id: Main.java,v 1.4 2006-11-22 15:05:39 cawe Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -64,7 +64,7 @@ public abstract class Main extends Base { protected abstract void Draw_GetPalette(); abstract void GL_ImageList_f(); - abstract void GL_ScreenShot_f(); + public abstract void GL_ScreenShot_f(); abstract void GL_SetTexturePalette(int[] palette); abstract void GL_Strings_f(); @@ -991,7 +991,7 @@ public abstract class Main extends Base { Cmd.AddCommand("screenshot", new xcommand_t() { public void execute() { - GL_ScreenShot_f(); + glImpl.screenshot(); } }); Cmd.AddCommand("modellist", new xcommand_t() { diff --git a/src/jake2/render/fast/Misc.java b/src/jake2/render/fast/Misc.java index d4df9af..e1b47e6 100644 --- a/src/jake2/render/fast/Misc.java +++ b/src/jake2/render/fast/Misc.java @@ -2,7 +2,7 @@ * Misc.java * Copyright (C) 2003 * - * $Id: Misc.java,v 1.2 2006-11-21 00:50:46 cawe Exp $ + * $Id: Misc.java,v 1.3 2006-11-22 15:05:39 cawe Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -114,12 +114,10 @@ public final class Misc extends Mesh { private final static int TGA_HEADER_SIZE = 18; - /* - ================== - GL_ScreenShot_f - ================== - */ - void GL_ScreenShot_f() { + /** + * GL_ScreenShot_f + */ + public void GL_ScreenShot_f() { StringBuffer sb = new StringBuffer(FS.Gamedir() + "/scrshot/jake00.tga"); FS.CreatePath(sb.toString()); File file = new File(sb.toString()); |