mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-06-29 05:29:31 +00:00
GPL Licensing made explicit in new source files.
This commit is contained in:
parent
c5cfc49da7
commit
0b1e70c703
|
@ -5,6 +5,7 @@ Copyright (C) 1994-1996, Michael O'Brien
|
||||||
Copyright (C) 1999-2001, Oliver Schmidt
|
Copyright (C) 1999-2001, Oliver Schmidt
|
||||||
Copyright (C) 2002-2005, Tom Charlesworth
|
Copyright (C) 2002-2005, Tom Charlesworth
|
||||||
Copyright (C) 2006-2010, Tom Charlesworth, Michael Pohoreski, Nick Westgate
|
Copyright (C) 2006-2010, Tom Charlesworth, Michael Pohoreski, Nick Westgate
|
||||||
|
Copyright (C) 2011, William S Simms
|
||||||
|
|
||||||
AppleWin is free software; you can redistribute it and/or modify
|
AppleWin is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -1,10 +1,21 @@
|
||||||
/*
|
/*
|
||||||
* cs.c
|
AppleWin : An Apple //e emulator for Windows
|
||||||
* video
|
|
||||||
*
|
Copyright (C) 2010-2011, William S Simms
|
||||||
* Created by Sheldon Simms on 12/4/10.
|
|
||||||
* Copyright 2010 __MyCompanyName__. All rights reserved.
|
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
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "cs.h"
|
#include "cs.h"
|
||||||
|
|
23
source/cs.h
23
source/cs.h
|
@ -1,10 +1,21 @@
|
||||||
/*
|
/*
|
||||||
* cs.h
|
AppleWin : An Apple //e emulator for Windows
|
||||||
* video
|
|
||||||
*
|
Copyright (C) 2010-2011, William S Simms
|
||||||
* Created by Sheldon Simms on 12/4/10.
|
|
||||||
* Copyright 2010 __MyCompanyName__. All rights reserved.
|
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
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef INCLUDED_CS_H
|
#ifndef INCLUDED_CS_H
|
||||||
|
|
|
@ -1,10 +1,22 @@
|
||||||
//
|
/*
|
||||||
// wsvideo.cpp
|
AppleWin : An Apple //e emulator for Windows
|
||||||
// ntsc video
|
|
||||||
//
|
Copyright (C) 2010-2011, William S Simms
|
||||||
// Created by Sheldon Simms on 11/19/10.
|
|
||||||
// Copyright 2010 __MyCompanyName__. All rights reserved.
|
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
|
||||||
|
*/
|
||||||
|
|
||||||
#include "cs.h"
|
#include "cs.h"
|
||||||
#include "wsvideo.h"
|
#include "wsvideo.h"
|
||||||
|
@ -436,15 +448,16 @@ static int sbits = 0;
|
||||||
|
|
||||||
#define SINGLETVPIXEL(signal,table) \
|
#define SINGLETVPIXEL(signal,table) \
|
||||||
do { \
|
do { \
|
||||||
unsigned int mm; \
|
unsigned int ntscp, prevp, betwp; \
|
||||||
unsigned int *cp, *np, *mp; \
|
unsigned int *prevlin, *between; \
|
||||||
sbits = ((sbits << 1) | signal) & 0xFFF; \
|
sbits = ((sbits << 1) | signal) & 0xFFF; \
|
||||||
cp = (unsigned int *)(&(table[sbits][0])); \
|
prevlin = (unsigned int *)(vbp0 + 8 * FRAMEBUFFER_W); \
|
||||||
*((unsigned int *)vbp0) = *cp; \
|
between = (unsigned int *)(vbp0 + 4 * FRAMEBUFFER_W); \
|
||||||
mp = (unsigned int *)(vbp0 - 4 * FRAMEBUFFER_W); \
|
ntscp = *(unsigned int *)(&(table[sbits][0])); /* raw current NTSC color */ \
|
||||||
np = (unsigned int *)(vbp0 - 8 * FRAMEBUFFER_W); \
|
prevp = *prevlin; \
|
||||||
mm = ((*cp & 0x00fcfcfc) >> 2) + ((*np & 0x00fcfcfc) >> 2); \
|
betwp = ntscp - ((ntscp & 0x00fcfcfc) >> 2); \
|
||||||
*mp = mm + ((mm & 0x00fefefe) >> 1) + 0xff000000; \
|
*between = betwp | 0xff000000; \
|
||||||
|
*((unsigned int *)vbp0) = ntscp; \
|
||||||
vbp0 += 4; \
|
vbp0 += 4; \
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|
||||||
|
@ -460,15 +473,16 @@ static int sbits = 0;
|
||||||
|
|
||||||
#define DOUBLETVPIXEL(signal,table) \
|
#define DOUBLETVPIXEL(signal,table) \
|
||||||
do { \
|
do { \
|
||||||
unsigned int mm; \
|
unsigned int ntscp, prevp, betwp; \
|
||||||
unsigned int *cp, *np, *mp; \
|
unsigned int *prevlin, *between; \
|
||||||
sbits = ((sbits << 1) | signal) & 0xFFF; \
|
sbits = ((sbits << 1) | signal) & 0xFFF; \
|
||||||
cp = (unsigned int *)(&(table[sbits][0])); \
|
prevlin = (unsigned int *)(vbp0 + 8 * FRAMEBUFFER_W); \
|
||||||
*((unsigned int *)vbp0) = *cp; \
|
between = (unsigned int *)(vbp0 + 4 * FRAMEBUFFER_W); \
|
||||||
mp = (unsigned int *)(vbp0 - 4 * FRAMEBUFFER_W); \
|
ntscp = *(unsigned int *)(&(table[sbits][0])); /* raw current NTSC color */ \
|
||||||
np = (unsigned int *)(vbp0 - 8 * FRAMEBUFFER_W); \
|
prevp = *prevlin; \
|
||||||
mm = ((*cp & 0x00fefefe) >> 1); \
|
betwp = ((ntscp & 0x00fefefe) >> 1) + ((prevp & 0x00fefefe) >> 1); \
|
||||||
*mp = mm + ((mm & 0x00fefefe) >> 1) + ((*np & 0x00fcfcfc) >> 2) + 0xff000000; \
|
*between = betwp | 0xff000000; \
|
||||||
|
*((unsigned int *)vbp0) = ntscp; \
|
||||||
vbp0 += 4; \
|
vbp0 += 4; \
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,22 @@
|
||||||
//
|
/*
|
||||||
// WS_VIDEO
|
AppleWin : An Apple //e emulator for Windows
|
||||||
//
|
|
||||||
|
Copyright (C) 2010-2011, William S Simms
|
||||||
|
|
||||||
|
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
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef WS_VIDEO
|
#ifndef WS_VIDEO
|
||||||
#define WS_VIDEO
|
#define WS_VIDEO
|
||||||
|
|
Loading…
Reference in New Issue
Block a user