On Sun, 4 Sep 2011 20:23:38 +0100 (GMT Daylight Time), Jeffrey Lee wrote:
> * Amiga & GP2X display code has been modified to use the palettised
> driver. So with any luck both those platforms will work with only minimal
> fixes. However I haven't tried to add any endian swapping code, so you
> might need to sort that out yourself, Chris. The routines which do the
> data copying are in arch/displaydev.c, so that's probably the first place
> to start. I have a feeling it might be easiest to write seperate versions
> for big-endian hosts.
I've made some minor changes to get it to compile (attached), however
I'm not getting anything on the display at all!
--- RAM Disk:arcem-src/amiga/DispKbd.c 2011-09-04 19:20:36
+++ Files:Projects/arcem-src/amiga/DispKbd.c 2011-09-11 14:11:22
@@ -52,6 +52,8 @@ void CloseDisplay(void);
int ChangeMode(int width,int height,int log2bpp,int *xscale,int *yscale)
{
+ ULONG id = INVALID_ID;
+
printf("New display mode: %d x %d x %d ",width,height,1<<log2bpp);
if(width == oldwidth && height == oldheight && log2bpp == oldlog2bpp)
@@ -219,12 +221,12 @@ static inline void SDD_Name(Host_EndRow)
static inline void SDD_Name(Host_BeginUpdate)(ARMul_State *state,SDD_Row
*row,unsigned int count)
{
-#error TODO - This is called when we're about to write to 'count' pixels
+#error TODO -' This is called when we're about to write to 'count' pixels
}
static inline void SDD_Name(Host_EndUpdate)(ARMul_State *state,SDD_Row *row)
{
-#error TODO - This is called once we've finished writing to the pixels
+#error TODO -' This is called once we've finished writing to the pixels
}
static inline void SDD_Name(Host_SkipPixels)(ARMul_State *state,SDD_Row
*row,unsigned int count)
@@ -413,7 +415,7 @@ static inline void PDD_Name(Host_EndRow)
static inline ARMword *PDD_Name(Host_BeginUpdate)(ARMul_State *state,PDD_Row
*row,unsigned int count,int *outoffset)
{
- drow.width = count>>3;
+ row->width = count>>3;
*outoffset = 0;
return RowBuffer;
}
@@ -425,7 +427,7 @@ static inline void PDD_Name(Host_EndUpda
static inline void PDD_Name(Host_AdvanceRow)(ARMul_State *state,PDD_Row
*row,unsigned int count)
{
- drow.x += count>>3;
+ row->x += count>>3;
}
static void
@@ -490,7 +492,7 @@ void PDD_Name(Host_ChangeMode)(ARMul_Sta
/*-----------------------------------------------------------------------------*/
/* Refresh the mouse pointer image
*/
static void pdd_refreshmouse(ARMul_State *state) {
- int x,y,height,offset;
+ int x,y,offset;
int memptr;
int HorizPos;
int height = (int)VIDC.Vert_CursorEnd - (int)VIDC.Vert_CursorStart;
--- RAM Disk:arcem-src/amiga/platform.h 2011-08-28 19:35:18
+++ Files:Projects/arcem-src/amiga/platform.h 2011-09-11 14:31:23
@@ -1,3 +1,6 @@
+#ifndef AMIGA_PLATFORM_H
+#define AMIGA_PLATFORM_H 1
+
#include <intuition/intuition.h>
#include <proto/icon.h>
#include <proto/exec.h>
@@ -29,3 +32,6 @@ struct UtilityIFace *IUtility;
extern void cleanup(void);
extern void sound_exit(void);
+
+int force8bit;
+#endif
--- RAM Disk:arcem-src/amiga/wb.c 2008-04-20 12:11:36
+++ Files:Projects/arcem-src/amiga/wb.c 2011-09-11 14:03:51
@@ -11,8 +11,6 @@
#include "ArcemConfig.h"
#include "platform.h"
-int force8bit=0;
-
void wblaunch(struct WBStartup *);
void closewblibs(void);
void gettooltypes(struct WBArg *);
--- RAM Disk:arcem-src/amiga/sound.c 2011-08-28 18:58:52
+++ Files:Projects/arcem-src/amiga/sound.c 2011-09-11 14:15:47
@@ -97,7 +97,7 @@ Sound_InitHost(ARMul_State *state)
void sound_exit(void)
{
- IExec->FreeVec(buffer);
+// IExec->FreeVec(buffer);
IDOS->Close(audioh);
if(IUtility)
------------------------------------------------------------------------------
Using storage to extend the benefits of virtualization and iSCSI
Virtualization increases hardware utilization and delivers a new level of
agility. Learn what those decisions are and how to modernize your storage
and backup environments for virtualization.
http://www.accelacomm.com/jaw/sfnl/114/51434361/
--
arcem-devel mailing list
arcem-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/arcem-devel