////////////////////////////////////////////////////////////////////////////// // // This file is part of the Atari Machine Specific Library, // and is Copyright 1992 by Warwick W. Allison. // // You are free to copy and modify these sources, provided you acknoledge // the origin by retaining this notice, and adhere to the conditions // described in the file COPYING. // ////////////////////////////////////////////////////////////////////////////// #include "resolution.h" #include /* STL STM STH ??? TTM ??? TTH TTL */ short ScreenWidth[NUMRES] = {320,640,640,640,640,640,1280,320}; short ScreenHeight[NUMRES] = {200,200,400,400,480,480, 960,480}; short NumberOfColours[NUMRES] = { 16, 4, 2, 2, 16, 16, 2,256}; short BitPlanes[NUMRES] = { 4, 2, 1, 1, 4, 4, 1, 8}; short BytesPerBitPlaneLine[NUMRES] = { 40, 80, 80, 80, 80, 80, 160, 40}; short BytesPerLine[NUMRES] = {160,160, 80, 80,320,320, 160,320}; ResolutionChange::ResolutionChange() { Before=Getrez(); After=Before; } ResolutionChange::ResolutionChange(Resolution res) { Before=Getrez(); Setscreen(-1,-1,res); After=res; } ResolutionChange::~ResolutionChange() { Setscreen(-1,-1,Before); }