DieHard Wolfers Forum Index DieHard Wolfers
A Wolfenstein 3d Fan Community


  Hosted by: MCS & Areyep.com - Designed by: BrotherTank

Original Yahoo Forum - Die Hard Archives

AReyeP HomepageAreyep Homepage DieHard Wolfenstein BunkerDieHard Wolfenstein Bunker Log inLog in RegisterRegister Banlist FAQFAQ Search ForumsSearch

  Username:    Password:      Remember me       

[Bugfix] Enable a fullscreen view in Wolf4GW
Page 1 of 1
DieHard Wolfers Forum Index -> Code Crackers View Previous TopicRefresh this PageAdd Topic to your Browser FavoritesSearch ForumsPrint this TopicE-mail TopicGoto Page BottomView Next Topic
Post new topicReply to topic
Author Message
Tricob
Moderator
<B>Moderator</B>


Joined: 14 Mar 2005
Last Visit: 4:27 ago.

Topics: 167
Posts: 8466
Location: Neo-traditions, Inc.
usa.gif

PostPosted: Tue Dec 25, 2007 8:36 pm
   Subject: [Bugfix] Enable a fullscreen view in Wolf4GW
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Next PostGoto Bottom of Posts

It seems Ripper set the code so that a full screen view would not be available. Turns out when you tried to have the code run such a thing, the game would crash in anything except DOS Box. Why? Well, it turns out that when the View Size is set to Full Screen, or "20", the edges are drawn outside of the (0,0)-(319,199) boundaries of the MCGA screen. So let's tell the code to "think" before it acts, shall we? Smile

First, go into WL_MAIN.CPP and WL_MENU.CPP, and Search for the number 19. This should appear in an IF condition. The number 19 should appear twice in the same line, in both files. Change each 19 in these lines to the number 20.

Now you have the game enabling the Full Screen mode, and it won't be reset when you start up the EXE a second time. *But* the EXE still crashes when you try to make the window full-sized. So let's fix that.

In WL_GAME.CPP, update the two routines to read as follows:

::: CODE :::
/*
===================
=
= DrawPlayBorderSides
=
= To fix window overwrites
=
===================
*/

void DrawPlayBorderSides (void)
{
        int     xl,yl;

        xl = 160-viewwidth/2;
        yl = (200-STATUSLINES-viewheight)/2;

if(viewwidth!=320)
        {
        VWB_Bar (0,0,xl-1,200-STATUSLINES,bordercol);
        VWB_Bar (xl+viewwidth+1,0,xl-2,200-STATUSLINES,bordercol);

        VWB_Bar (0,0,320,yl-1,bordercol);
        VWB_Bar (0,yl+viewheight+1,320,yl-1,bordercol);

        VWB_Vlin (yl-1,yl+viewheight,xl-1,0);
        VWB_Vlin (yl-1,yl+viewheight,xl+viewwidth,bordercol-2);

        VWB_Hlin (xl-1,xl+viewwidth,yl-1,0);
        VWB_Hlin (xl-1,xl+viewwidth,yl+viewheight,bordercol-2);
        VWB_Plot (xl-1,yl+viewheight,bordercol-3);
        }

}


::: CODE :::
/*
===================
=
= DrawPlayBorder
=
===================
*/

void DrawPlayBorder (void)
{
        int     xl,yl;

        if (bordercol != VIEWCOLOR)
                DrawStatusBorder(bordercol);

        VWB_Bar (0,0,320,200-STATUSLINES,bordercol);

        xl = 160-viewwidth/2;
        yl = (200-STATUSLINES-viewheight)/2;
        VWB_Bar (xl,yl,viewwidth,viewheight,0);

if(viewwidth!=320)
        {
        VWB_Hlin (xl-1,xl+viewwidth,yl-1,0);
        VWB_Hlin (xl-1,xl+viewwidth,yl+viewheight,bordercol-2);
        VWB_Vlin (yl-1,yl+viewheight,xl-1,0);
        VWB_Vlin (yl-1,yl+viewheight,xl+viewwidth,bordercol-2);
        VWB_Plot (xl-1,yl+viewheight,bordercol-3);
        }

}


That oughta do it. Now the code checks *before* drawing those edges to see if the "viewwidth" variable is 320. If the condition is True, then the routine that draws the edges of the window is skipped.

Enjoy your full-screen view, folks. ???
Ripper
Code Master - Developer
Code Master - Developer


Joined: 15 Mar 2003
Last Visit: 30 Sep 2008

Topics: 21
Posts: 527
Location: Germany
blank.gif

PostPosted: Tue Jan 08, 2008 2:32 pm
   Subject: [Bugfix] Enable a fullscreen view in Wolf4GW
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Thanks for the fix. I had the same problem on Wolf4SDL, so it saved me quite some time!

_________________
Life is an awful game, but the graphics resolution rocks ;D
Tricob
Moderator
<B>Moderator</B>


Joined: 14 Mar 2005
Last Visit: 4:27 ago.

Topics: 167
Posts: 8466
Location: Neo-traditions, Inc.
usa.gif

PostPosted: Tue Jan 08, 2008 5:45 pm
   Subject: Re: [Bugfix] Enable a fullscreen view in Wolf4GW
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Bottom of Posts

Glad I could be of help. Smile
Display posts from previous:   
Post new topicReply to topic Time synchronized with the forum server time
DieHard Wolfers Forum Index -> Code Crackers View Previous TopicRefresh this PageAdd Topic to your Browser FavoritesSearch ForumsPrint this TopicE-mail TopicGoto Page TopView Next Topic
Page 1 of 1
Jump to:  

Related topics
 Topics   Replies   Views   Last Post 
No new posts [Code] Run with Stamina - TekZK
Author: BrotherTank
8 3822 Sun May 16, 2004 12:54 am
Codetech84 View latest post
This topic is locked: you cannot edit posts or make replies. [Info] Source code for Darkone's NewWolf Classic
Author: Raistlin
1 2129 Tue Feb 10, 2004 10:18 am
BrotherTank View latest post
No new posts [Help] Berserk mode
Author: wolf3dbreaker
2 2513 Tue Feb 03, 2004 11:01 pm
Xarkon View latest post
No new posts [Info] How to Animate a Title Screen?
Author: Guest
5 260 Mon Jul 14, 2003 11:41 am
Guest View latest post
No new posts [Info] Alarm Sounding in game?? WSJ...??
Author: Guest
7 311 Tue Jun 17, 2003 10:04 pm
Reivax44 View latest post
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
   You cannot delete your posts in this forum
You cannot vote in polls in this forum


Copyright ©2003-2008 DieHard Wolfers
A Modified subBunker Theme by BrotherTank
Powered by phpBB © 2001, 2005 phpBB Group