2006-02-25 20:50:29 +00:00
|
|
|
/*
|
|
|
|
AppleWin : An Apple //e emulator for Windows
|
|
|
|
|
|
|
|
Copyright (C) 1994-1996, Michael O'Brien
|
|
|
|
Copyright (C) 1999-2001, Oliver Schmidt
|
|
|
|
Copyright (C) 2002-2005, Tom Charlesworth
|
2014-07-26 20:23:57 +00:00
|
|
|
Copyright (C) 2006-2014, Tom Charlesworth, Michael Pohoreski
|
2006-02-25 20:50:29 +00:00
|
|
|
|
|
|
|
AppleWin is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
AppleWin is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with AppleWin; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Description: Frame
|
|
|
|
*
|
|
|
|
* Author: Various
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "StdAfx.h"
|
2014-08-13 20:30:35 +00:00
|
|
|
|
2020-11-11 21:15:27 +00:00
|
|
|
#include "Frame.h"
|
2017-10-11 16:38:36 +00:00
|
|
|
|
|
|
|
UINT GetFrameBufferBorderlessWidth(void)
|
|
|
|
{
|
2019-08-29 20:38:00 +00:00
|
|
|
static const UINT uFrameBufferBorderlessW = 560; // 560 = Double Hi-Res
|
2017-10-11 16:55:10 +00:00
|
|
|
return uFrameBufferBorderlessW;
|
2017-10-11 16:38:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
UINT GetFrameBufferBorderlessHeight(void)
|
|
|
|
{
|
2017-10-11 18:18:53 +00:00
|
|
|
static const UINT uFrameBufferBorderlessH = 384; // 384 = Double Scan Line
|
2017-10-11 16:55:10 +00:00
|
|
|
return uFrameBufferBorderlessH;
|
2017-10-11 16:38:36 +00:00
|
|
|
}
|
|
|
|
|
2017-10-11 16:55:10 +00:00
|
|
|
// NB. These border areas are not visible (... and these border areas are unrelated to the 3D border below)
|
2017-10-11 16:38:36 +00:00
|
|
|
UINT GetFrameBufferBorderWidth(void)
|
|
|
|
{
|
2017-10-11 18:18:53 +00:00
|
|
|
static const UINT uBorderW = 20;
|
2017-10-11 16:55:10 +00:00
|
|
|
return uBorderW;
|
2017-10-11 16:38:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
UINT GetFrameBufferBorderHeight(void)
|
|
|
|
{
|
2017-10-11 18:18:53 +00:00
|
|
|
static const UINT uBorderH = 18;
|
2017-10-11 16:55:10 +00:00
|
|
|
return uBorderH;
|
2017-10-11 16:38:36 +00:00
|
|
|
}
|
2011-02-20 07:32:09 +00:00
|
|
|
|
2017-10-11 16:38:36 +00:00
|
|
|
UINT GetFrameBufferWidth(void)
|
|
|
|
{
|
|
|
|
return GetFrameBufferBorderlessWidth() + 2*GetFrameBufferBorderWidth();
|
|
|
|
}
|
|
|
|
|
|
|
|
UINT GetFrameBufferHeight(void)
|
|
|
|
{
|
|
|
|
return GetFrameBufferBorderlessHeight() + 2*GetFrameBufferBorderHeight();
|
|
|
|
}
|