[Fuse-for-macosx-commits] SF.net SVN: fuse-for-macosx: [364] vendor/fuse/current
Brought to you by:
fredm
|
From: <fr...@us...> - 2007-05-12 00:13:59
|
Revision: 364
http://svn.sourceforge.net/fuse-for-macosx/?rev=364&view=rev
Author: fredm
Date: 2007-05-11 17:13:58 -0700 (Fri, 11 May 2007)
Log Message:
-----------
Load . into vendor/fuse/current.
Modified Paths:
--------------
vendor/fuse/current/ChangeLog
vendor/fuse/current/README
vendor/fuse/current/acinclude.m4
vendor/fuse/current/configure.in
vendor/fuse/current/hacking/ChangeLog
vendor/fuse/current/hacking/cvs-tags
vendor/fuse/current/hacking/ui.txt
vendor/fuse/current/lib/Makefile.am
vendor/fuse/current/machines/pentagon.c
vendor/fuse/current/machines/scorpion.c
vendor/fuse/current/machines/spec128.c
vendor/fuse/current/machines/spec16.c
vendor/fuse/current/machines/spec48.c
vendor/fuse/current/man/fuse.1
vendor/fuse/current/periph.c
vendor/fuse/current/screenshot.c
vendor/fuse/current/snapshot.c
vendor/fuse/current/spectrum.c
vendor/fuse/current/spectrum.h
vendor/fuse/current/ui/fb/fbdisplay.c
vendor/fuse/current/ui/ggi/ggidisplay.c
vendor/fuse/current/ui/gtk/gtkdisplay.c
vendor/fuse/current/ui/scaler/scaler.c
vendor/fuse/current/ui/scaler/scalers.c
vendor/fuse/current/ui/sdl/sdldisplay.c
vendor/fuse/current/ui/svga/svgadisplay.c
vendor/fuse/current/ui/uidisplay.h
vendor/fuse/current/ui/win32/win32display.c
vendor/fuse/current/ui/xlib/xdisplay.c
vendor/fuse/current/uidisplay.c
vendor/fuse/current/ula.c
vendor/fuse/current/ula.h
vendor/fuse/current/widget/Makefile.am
vendor/fuse/current/widget/menu.c
vendor/fuse/current/widget/pokefinder.c
Modified: vendor/fuse/current/ChangeLog
===================================================================
--- vendor/fuse/current/ChangeLog 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/ChangeLog 2007-05-12 00:13:58 UTC (rev 364)
@@ -1,3 +1,22 @@
+2007-05-11 Philip Kendall <phi...@sh...>
+
+ * Fuse 0.8.0.1 released (bug fix release)
+
+ * Fix IN timings and floating bus behaviour: fixes Sidewize (thanks,
+ Pegaz and Mark Woodmass) (Philip Kendall).
+ * Fix widget UI pokefinder and keyboard help picture
+ (thanks, Alberto Garcia) (Philip Kendall and Fredrick Meunier).
+ * Fix crash if fullscreen mode attempted a resolution higher than
+ the native graphics mode could handle (thanks, Alberto Garcia)
+ (Fredrick Meunier).
+ * Ensure ABS, MIN and PATH_MAX are available where needed (Fredrick
+ Meunier).
+ * Distribute autoload snapshots (thanks, Stuart Brady and Arda
+ Erdikmen) (Fredrick Meunier).
+ * Remove flicker when playing back RZX files with embedded
+ snapshots (thanks, Julian Wiseman) (Fredrick Meunier).
+ * Remove warnings when building from CVS (Stuart Brady).
+
2007-04-11 Philip Kendall <phi...@sh...>
* Fuse 0.8.0 released
@@ -788,4 +807,4 @@
* Version 0.1.0 released.
-$Id: ChangeLog,v 1.46.2.1 2007/04/09 16:59:02 pak21 Exp $
+$Id: ChangeLog,v 1.46.2.2 2007/05/10 07:32:38 pak21 Exp $
Modified: vendor/fuse/current/README
===================================================================
--- vendor/fuse/current/README 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/README 2007-05-12 00:13:58 UTC (rev 364)
@@ -1,5 +1,5 @@
-The Free Unix Spectrum Emulator (Fuse) 0.8.0
-============================================
+The Free Unix Spectrum Emulator (Fuse) 0.8.0.1
+==============================================
Fuse (the Free Unix Spectrum Emulator) was originally, and somewhat
unsurprisingly, an emulator of the ZX Spectrum (a popular 1980s home
@@ -139,6 +139,6 @@
( http://www.worldofspectrum.org/faq/index.html ) first!
Philip Kendall <phi...@sh...>
-11 April 2007
+11 May 2007
-$Id: README,v 1.40.2.2 2007/04/11 08:44:19 pak21 Exp $
+$Id: README,v 1.40.2.3 2007/05/10 07:32:38 pak21 Exp $
Modified: vendor/fuse/current/acinclude.m4
===================================================================
--- vendor/fuse/current/acinclude.m4 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/acinclude.m4 2007-05-12 00:13:58 UTC (rev 364)
@@ -7,7 +7,7 @@
dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if "gmodule" or
dnl gthread is specified in MODULES, pass to glib-config
dnl
-AC_DEFUN(AM_PATH_GLIB,
+AC_DEFUN([AM_PATH_GLIB],
[dnl
dnl Get the cflags and libraries from the glib-config script
dnl
@@ -420,7 +420,7 @@
dnl AM_PATH_GTK([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
dnl Test for GTK, and define GTK_CFLAGS and GTK_LIBS
dnl
-AC_DEFUN(AM_PATH_GTK,
+AC_DEFUN([AM_PATH_GTK],
[dnl
dnl Get the cflags and libraries from the gtk-config script
dnl
Modified: vendor/fuse/current/configure.in
===================================================================
--- vendor/fuse/current/configure.in 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/configure.in 2007-05-12 00:13:58 UTC (rev 364)
@@ -1,5 +1,5 @@
dnl Process this file with autoconf to produce a configure script.
-dnl $Id: configure.in,v 1.155.2.2 2007/04/09 16:59:02 pak21 Exp $
+dnl $Id: configure.in,v 1.155.2.3 2007/05/10 07:32:38 pak21 Exp $
dnl This program is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
@@ -24,7 +24,7 @@
AC_CANONICAL_SYSTEM
dnl Use automake to produce `Makefile.in'
-AM_INIT_AUTOMAKE(fuse, 0.8.0)
+AM_INIT_AUTOMAKE(fuse, 0.8.0.1)
dnl Checks for programs.
AC_PROG_CC
Modified: vendor/fuse/current/hacking/ChangeLog
===================================================================
--- vendor/fuse/current/hacking/ChangeLog 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/hacking/ChangeLog 2007-05-12 00:13:58 UTC (rev 364)
@@ -1582,4 +1582,37 @@
Julian Wiseman) (Release-0_8_0-branch).
20070411 README: these aren't all IDE interfaces (Release-0_8_0-branch).
20070411 fuse.c: update copyright date to 2007 (Release-0_8_0-branch).
-20070411 TAG: Release-0_8_0 (Release-0_8_0-branch).
+20070416 widget/Makefile.am: distribute fuse.font.sbf and mkfusefont.pl
+ (Release-0_8_0-branch) (Fred).
+20070424 TAG: Release-0_8_0 (Release-0_8_0-branch).
+20070425 uidisplay.c,widget/menu.c: initialise border in help screen and
+ center keyboard picture on help screen (thanks, Alberto Garcia)
+ (Release-0_8_0-branch).
+20070425 widget/pokefinder.c: fix up for non-proportional display
+ (thanks, Alberto Garcia) (Release-0_8_0-branch).
+20070428 hacking/ui.txt,ui/{uidisplay.h,fb/fbdisplay.c,ggi/ggidisplay.c,
+ gtk/gtkdisplay.c,scaler/scaler.c,sdl/sdldisplay.c,
+ svga/svgadisplay.c,win32/win32display.c,xlib/xdisplay.c}:
+ check that we don't exceed maximum fullscreen dimensions with
+ SDL UI and attempt a more graceful failure if things go wrong
+ (fixes bug #1708636; thanks Alberto Garcia) (Release-0_8_0-branch)
+ (Fred).
+20070501 screenshot.c: include limits.h for PATH_MAX (Release-0_8_0-branch)
+ (Fred).
+20070501 ui/scaler/scalers.c: make sure MIN and ABS are defined
+ (Release-0_8_0-branch) (Fred).
+20070503 periph.c,spectrum.[ch],ula.[ch],machines/{pentagon.c,scorpion.c,
+ spec128.c,spec16.c,spec48.c}: fix IN timings and consequent fixes
+ to floating bus behaviour (fixes bug #1708597) (thanks, Pegaz and
+ Mark Woodmass) (Release-0_8_0-branch).
+20070507 lib/Makefile.am: distribute autoload snapshots
+ (thanks Stuart Brady and Arda Erdikmen) (Release-0_8_0-branch)
+ (Fred).
+20070509 snapshot.c: call machine_select() only if the machine has changed
+ (fixes bug #1701246) (thanks, Julian Wiseman) (Release-0_8_0-branch)
+ (Fred).
+20070509 acinclude.m4: remove warnings about underquoted definitions
+ (Release-0_8_0-branch) (Stuart Brady).
+20070510 ChangeLog,README,configure.in,man/fuse.1: doc updates for 0.8.0.1
+ release (Release-0_8_0-branch).
+20070511 TAG: Release-0_8_0_1 (Release-0_8_0-branch).
Modified: vendor/fuse/current/hacking/cvs-tags
===================================================================
--- vendor/fuse/current/hacking/cvs-tags 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/hacking/cvs-tags 2007-05-12 00:13:58 UTC (rev 364)
@@ -1,6 +1,6 @@
CVS tags for Fuse
-$Id: cvs-tags,v 1.32.2.2 2007/04/11 09:41:31 pak21 Exp $
+$Id: cvs-tags,v 1.32.2.3 2007/05/11 07:27:47 pak21 Exp $
| Release-0_3_1
| Release-0_3_2pre1
@@ -147,6 +147,7 @@
| | Release-0_8_0-pre1
| | Release-0_8_0-pre2
| | Release-0_8_0
+| | Release-0_8_0_1
| |
| | Release-0_8_0-branch
|
Modified: vendor/fuse/current/hacking/ui.txt
===================================================================
--- vendor/fuse/current/hacking/ui.txt 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/hacking/ui.txt 2007-05-12 00:13:58 UTC (rev 364)
@@ -1,7 +1,7 @@
Some brief instructions on adding another user interface to Fuse
================================================================
-Version: $Id: ui.txt,v 1.9 2003/03/13 14:55:28 pak21 Exp $
+Version: $Id: ui.txt,v 1.9.14.1 2007/04/28 00:23:09 fredm Exp $
In order to add a new user interface (UI) to Fuse, you need to
implement:
@@ -71,7 +71,7 @@
This is called at the end of every spectrum frame, giving the ui a
chance to flush all the drawing done over the course of the frame.
-* void uidisplay_hotswap_gfx_mode( void )
+* int uidisplay_hotswap_gfx_mode( void )
This is called when the user has changed the scaler in use by the
emulator. The ui should change the window to a multiple of the
Modified: vendor/fuse/current/lib/Makefile.am
===================================================================
--- vendor/fuse/current/lib/Makefile.am 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/lib/Makefile.am 2007-05-12 00:13:58 UTC (rev 364)
@@ -1,7 +1,7 @@
## Process this file with automake to produce Makefile.in
## Copyright (c) 1999-2004 Philip Kendall
-## $Id: Makefile.am,v 1.15 2007/02/02 16:21:53 pak21 Exp $
+## $Id: Makefile.am,v 1.15.2.1 2007/05/07 12:54:24 fredm Exp $
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
@@ -26,9 +26,8 @@
FILES = cassette.bmp \
keyboard.scr \
microdrive.bmp \
- plus3disk.bmp
-
-noinst_FILES = @AUTOLOAD_SNAPS@/disk_plus3.szx \
+ plus3disk.bmp \
+ @AUTOLOAD_SNAPS@/disk_plus3.szx \
@AUTOLOAD_SNAPS@/tape_128.szx \
@AUTOLOAD_SNAPS@/tape_16.szx \
@AUTOLOAD_SNAPS@/tape_2048.szx \
Modified: vendor/fuse/current/machines/pentagon.c
===================================================================
--- vendor/fuse/current/machines/pentagon.c 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/machines/pentagon.c 2007-05-12 00:13:58 UTC (rev 364)
@@ -1,7 +1,7 @@
/* pentagon.c: Pentagon 128K specific routines
- Copyright (c) 1999-2004 Philip Kendall and Fredrick Meunier
+ Copyright (c) 1999-2007 Philip Kendall and Fredrick Meunier
- $Id: pentagon.c,v 1.31 2007/02/02 16:21:54 pak21 Exp $
+ $Id: pentagon.c,v 1.31.2.1 2007/05/03 07:31:42 pak21 Exp $
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -84,7 +84,7 @@
static libspectrum_byte
pentagon_unattached_port( void )
{
- return spectrum_unattached_port( 3 );
+ return spectrum_unattached_port();
}
int
Modified: vendor/fuse/current/machines/scorpion.c
===================================================================
--- vendor/fuse/current/machines/scorpion.c 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/machines/scorpion.c 2007-05-12 00:13:58 UTC (rev 364)
@@ -1,8 +1,7 @@
/* scorpion.c: Scorpion 256K specific routines
- Copyright (c) 1999-2004 Philip Kendall and Fredrick Meunier
- Copyright (c) 2004 Stuart Brady
+ Copyright (c) 1999-2007 Philip Kendall, Fredrick Meunier and Stuart Brady
- $Id: scorpion.c,v 1.24 2007/02/02 16:21:54 pak21 Exp $
+ $Id: scorpion.c,v 1.24.2.1 2007/05/03 07:31:42 pak21 Exp $
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -94,7 +93,7 @@
static libspectrum_byte
scorpion_unattached_port( void )
{
- return spectrum_unattached_port( 3 );
+ return spectrum_unattached_port();
}
static libspectrum_byte
Modified: vendor/fuse/current/machines/spec128.c
===================================================================
--- vendor/fuse/current/machines/spec128.c 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/machines/spec128.c 2007-05-12 00:13:58 UTC (rev 364)
@@ -1,7 +1,7 @@
/* spec128.c: Spectrum 128K specific routines
- Copyright (c) 1999-2004 Philip Kendall
+ Copyright (c) 1999-2007 Philip Kendall
- $Id: spec128.c,v 1.77 2007/02/02 16:21:54 pak21 Exp $
+ $Id: spec128.c,v 1.77.2.1 2007/05/03 07:31:42 pak21 Exp $
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -61,7 +61,7 @@
libspectrum_byte
spec128_unattached_port( void )
{
- return spectrum_unattached_port( 3 );
+ return spectrum_unattached_port();
}
libspectrum_byte
Modified: vendor/fuse/current/machines/spec16.c
===================================================================
--- vendor/fuse/current/machines/spec16.c 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/machines/spec16.c 2007-05-12 00:13:58 UTC (rev 364)
@@ -1,7 +1,7 @@
/* spec16.c: Spectrum 16K specific routines
- Copyright (c) 1999-2005 Philip Kendall
+ Copyright (c) 1999-2007 Philip Kendall
- $Id: spec16.c,v 1.32 2007/02/02 16:21:54 pak21 Exp $
+ $Id: spec16.c,v 1.32.2.1 2007/05/03 07:31:42 pak21 Exp $
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -61,7 +61,7 @@
static libspectrum_byte
spec16_unattached_port( void )
{
- return spectrum_unattached_port( 1 );
+ return spectrum_unattached_port();
}
int spec16_init( fuse_machine_info *machine )
Modified: vendor/fuse/current/machines/spec48.c
===================================================================
--- vendor/fuse/current/machines/spec48.c 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/machines/spec48.c 2007-05-12 00:13:58 UTC (rev 364)
@@ -1,7 +1,7 @@
/* spec48.c: Spectrum 48K specific routines
- Copyright (c) 1999-2004 Philip Kendall
+ Copyright (c) 1999-2007 Philip Kendall
- $Id: spec48.c,v 1.72 2007/02/02 16:21:54 pak21 Exp $
+ $Id: spec48.c,v 1.72.2.1 2007/05/03 07:31:42 pak21 Exp $
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -57,7 +57,7 @@
static libspectrum_byte
spec48_unattached_port( void )
{
- return spectrum_unattached_port( 1 );
+ return spectrum_unattached_port();
}
int
Modified: vendor/fuse/current/man/fuse.1
===================================================================
--- vendor/fuse/current/man/fuse.1 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/man/fuse.1 2007-05-12 00:13:58 UTC (rev 364)
@@ -23,7 +23,7 @@
.\" E-mail: phi...@sh...
.\"
.\"
-.TH fuse 1 "11th April, 2007" "Version 0.8.0" "Emulators"
+.TH fuse 1 "11th May, 2007" "Version 0.8.0.1" "Emulators"
.\"
.\"------------------------------------------------------------------
.\"
Modified: vendor/fuse/current/periph.c
===================================================================
--- vendor/fuse/current/periph.c 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/periph.c 2007-05-12 00:13:58 UTC (rev 364)
@@ -1,7 +1,7 @@
/* periph.c: code for handling peripherals
Copyright (c) 2005-2007 Philip Kendall
- $Id: periph.c,v 1.20.2.1 2007/03/21 16:21:54 pak21 Exp $
+ $Id: periph.c,v 1.20.2.2 2007/05/03 07:31:42 pak21 Exp $
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -168,9 +168,10 @@
{
libspectrum_byte b;
- ula_contend_port_preio( port );
+ ula_contend_port_early( port );
+ ula_contend_port_late( port );
b = readport_internal( port );
- ula_contend_port_postio( port );
+ tstates++;
return b;
}
@@ -240,9 +241,9 @@
void
writeport( libspectrum_word port, libspectrum_byte b )
{
- ula_contend_port_preio( port );
+ ula_contend_port_early( port );
writeport_internal( port, b );
- ula_contend_port_postio( port );
+ ula_contend_port_late( port ); tstates++;
}
void
Modified: vendor/fuse/current/screenshot.c
===================================================================
--- vendor/fuse/current/screenshot.c 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/screenshot.c 2007-05-12 00:13:58 UTC (rev 364)
@@ -1,7 +1,7 @@
/* screenshot.c: Routines for handling .png and .scr screenshots
Copyright (c) 2002-2003 Philip Kendall, Fredrick Meunier
- $Id: screenshot.c,v 1.33 2007/02/02 16:21:52 pak21 Exp $
+ $Id: screenshot.c,v 1.33.2.1 2007/05/01 13:23:51 fredm Exp $
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -26,6 +26,7 @@
#include <config.h>
#include <errno.h>
+#include <limits.h>
#include <string.h>
#include <libspectrum.h>
Modified: vendor/fuse/current/snapshot.c
===================================================================
--- vendor/fuse/current/snapshot.c 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/snapshot.c 2007-05-12 00:13:58 UTC (rev 364)
@@ -1,7 +1,7 @@
/* snapshot.c: snapshot handling routines
Copyright (c) 1999-2004 Philip Kendall
- $Id: snapshot.c,v 1.105 2007/02/02 16:21:52 pak21 Exp $
+ $Id: snapshot.c,v 1.105.2.1 2007/05/09 19:31:02 pak21 Exp $
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -136,9 +136,13 @@
machine = libspectrum_snap_machine( snap );
- error = machine_select( machine );
- if( error ) {
- error = try_fallback_machine( machine ); if( error ) return error;
+ if( machine != machine_current->machine ) {
+ error = machine_select( machine );
+ if( error ) {
+ error = try_fallback_machine( machine ); if( error ) return error;
+ }
+ } else {
+ machine_reset();
}
capabilities = machine_current->capabilities;
Modified: vendor/fuse/current/spectrum.c
===================================================================
--- vendor/fuse/current/spectrum.c 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/spectrum.c 2007-05-12 00:13:58 UTC (rev 364)
@@ -1,7 +1,7 @@
/* spectrum.c: Generic Spectrum routines
Copyright (c) 1999-2004 Philip Kendall, Darren Salt
- $Id: spectrum.c,v 1.67 2007/02/02 16:21:52 pak21 Exp $
+ $Id: spectrum.c,v 1.67.2.1 2007/05/03 07:31:42 pak21 Exp $
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -97,7 +97,7 @@
/* What happens if we read from an unattached port? */
libspectrum_byte
-spectrum_unattached_port( int offset )
+spectrum_unattached_port( void )
{
int line, tstates_through_line, column;
@@ -110,24 +110,26 @@
machine_current->line_times[ DISPLAY_BORDER_HEIGHT ] ) /
machine_current->timings.tstates_per_line;
- /* Idle bus if we're in the lower or upper borders */
+ /* Idle bus if we're in the lower border */
if( line >= DISPLAY_HEIGHT ) return 0xff;
- /* Work out where we are in this line */
+ /* Work out where we are in this line, remembering that line_times[] holds
+ the first pixel we display, not the start of where the Spectrum produced
+ the left border */
tstates_through_line = tstates -
- machine_current->line_times[ DISPLAY_BORDER_HEIGHT + line ];
+ machine_current->line_times[ DISPLAY_BORDER_HEIGHT + line ] +
+ ( machine_current->timings.left_border - DISPLAY_BORDER_WIDTH_COLS * 4 );
/* Idle bus if we're in the left border */
- if( tstates_through_line < machine_current->timings.left_border - offset )
+ if( tstates_through_line < machine_current->timings.left_border )
return 0xff;
/* Or the right border or retrace */
if( tstates_through_line >= machine_current->timings.left_border +
- machine_current->timings.horizontal_screen -
- offset )
+ machine_current->timings.horizontal_screen )
return 0xff;
- column = ( ( tstates_through_line + 1 -
+ column = ( ( tstates_through_line -
machine_current->timings.left_border ) / 8 ) * 2;
switch( tstates_through_line % 8 ) {
@@ -137,24 +139,24 @@
http://www.ramsoft.bbk.org/floatingbus.html
However, the timings used are based on the first byte being
- returned at 14335 (48K) and 14361 (128K) respectively, not
+ returned at 14338 (48K) and 14364 (128K) respectively, not
14347 and 14368 as used by Ramsoft.
In contrast to previous versions of this code, Arkanoid and
Sidewize now work. */
/* Attribute bytes */
- case 3: column++;
- case 1:
+ case 5: column++;
+ case 3:
return RAM[ memory_current_screen ][ display_attr_start[line] + column ];
/* Screen data */
- case 2: column++;
- case 0:
+ case 4: column++;
+ case 2:
return RAM[ memory_current_screen ][ display_line_start[line] + column ];
/* Idle bus */
- case 4: case 5: case 6: case 7:
+ case 0: case 1: case 6: case 7:
return 0xff;
}
Modified: vendor/fuse/current/spectrum.h
===================================================================
--- vendor/fuse/current/spectrum.h 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/spectrum.h 2007-05-12 00:13:58 UTC (rev 364)
@@ -1,7 +1,7 @@
/* spectrum.h: Spectrum 48K specific routines
Copyright (c) 1999-2004 Philip Kendall, Darren Salt
- $Id: spectrum.h,v 1.45 2007/02/02 16:21:52 pak21 Exp $
+ $Id: spectrum.h,v 1.45.2.1 2007/05/03 07:31:42 pak21 Exp $
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -66,7 +66,7 @@
} spectrum_raminfo;
-libspectrum_byte spectrum_unattached_port( int offset );
+libspectrum_byte spectrum_unattached_port( void );
/* Miscellaneous stuff */
Modified: vendor/fuse/current/ui/fb/fbdisplay.c
===================================================================
--- vendor/fuse/current/ui/fb/fbdisplay.c 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/ui/fb/fbdisplay.c 2007-05-12 00:13:58 UTC (rev 364)
@@ -2,7 +2,7 @@
Copyright (c) 2000-2003 Philip Kendall, Matan Ziv-Av, Darren Salt,
Witold Filipczyk
- $Id: fbdisplay.c,v 1.40 2007/02/02 16:21:56 pak21 Exp $
+ $Id: fbdisplay.c,v 1.40.2.1 2007/04/28 00:23:08 fredm Exp $
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -293,10 +293,10 @@
return 1;
}
-void
+int
uidisplay_hotswap_gfx_mode( void )
{
- return;
+ return 0;
}
void
Modified: vendor/fuse/current/ui/ggi/ggidisplay.c
===================================================================
--- vendor/fuse/current/ui/ggi/ggidisplay.c 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/ui/ggi/ggidisplay.c 2007-05-12 00:13:58 UTC (rev 364)
@@ -1,7 +1,7 @@
/* ggiui.c: Routines for dealing with the GGI user interface
Copyright (c) 2003 Catalin Mihaila, Philip Kendall
- $Id: ggidisplay.c,v 1.6 2007/02/02 16:21:56 pak21 Exp $
+ $Id: ggidisplay.c,v 1.6.2.1 2007/04/28 00:23:08 fredm Exp $
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -160,10 +160,10 @@
}
-void
+int
uidisplay_hotswap_gfx_mode( void )
{
- return;
+ return 0;
}
/* Set one pixel in the display */
Modified: vendor/fuse/current/ui/gtk/gtkdisplay.c
===================================================================
--- vendor/fuse/current/ui/gtk/gtkdisplay.c 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/ui/gtk/gtkdisplay.c 2007-05-12 00:13:58 UTC (rev 364)
@@ -1,7 +1,7 @@
/* gtkdisplay.c: GTK+ routines for dealing with the Speccy screen
Copyright (c) 2000-2005 Philip Kendall
- $Id: gtkdisplay.c,v 1.59 2007/02/02 16:21:59 pak21 Exp $
+ $Id: gtkdisplay.c,v 1.59.2.1 2007/04/28 00:23:08 fredm Exp $
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -332,7 +332,7 @@
scaled_pitch );
}
-void
+int
uidisplay_hotswap_gfx_mode( void )
{
fuse_emulation_pause();
@@ -341,6 +341,8 @@
display_refresh_all();
fuse_emulation_unpause();
+
+ return 0;
}
int
Modified: vendor/fuse/current/ui/scaler/scaler.c
===================================================================
--- vendor/fuse/current/ui/scaler/scaler.c 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/ui/scaler/scaler.c 2007-05-12 00:13:58 UTC (rev 364)
@@ -1,7 +1,7 @@
/* scaler.c: code for selecting (etc) scalers
* Copyright (C) 2003 Fredrick Meunier, Philip Kendall
*
- * $Id: scaler.c,v 1.28 2007/01/28 11:27:13 fredm Exp $
+ * $Id: scaler.c,v 1.28.2.1 2007/04/28 00:23:08 fredm Exp $
*
* Originally taken from ScummVM - Scumm Interpreter
* Copyright (C) 2001 Ludvig Strigeus
@@ -136,9 +136,7 @@
scaler_flags = scaler_get_flags( current_scaler );
scaler_expander = scaler_get_expander( current_scaler );
- uidisplay_hotswap_gfx_mode();
-
- return 0;
+ return uidisplay_hotswap_gfx_mode();
}
int
Modified: vendor/fuse/current/ui/scaler/scalers.c
===================================================================
--- vendor/fuse/current/ui/scaler/scalers.c 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/ui/scaler/scalers.c 2007-05-12 00:13:58 UTC (rev 364)
@@ -1,7 +1,7 @@
/* scalers.c: the actual graphics scalers
* Copyright (C) 2003 Fredrick Meunier, Philip Kendall
*
- * $Id: scalers.c,v 1.37 2007/01/29 09:21:18 fredm Exp $
+ * $Id: scalers.c,v 1.37.2.1 2007/05/01 13:26:26 fredm Exp $
*
* Originally taken from ScummVM - Scumm Interpreter
* Copyright (C) 2001 Ludvig Strigeus
@@ -35,6 +35,14 @@
#include "ui/ui.h"
#include "ui/uidisplay.h"
+#ifndef MIN
+#define MIN(a,b) (((a) < (b)) ? (a) : (b))
+#endif
+
+#ifndef ABS
+#define ABS(a) ((x)>=0?(x):-(x))
+#endif
+
/* The actual code for the scalers starts here */
#if SCALER_DATA_SIZE == 2
Modified: vendor/fuse/current/ui/sdl/sdldisplay.c
===================================================================
--- vendor/fuse/current/ui/sdl/sdldisplay.c 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/ui/sdl/sdldisplay.c 2007-05-12 00:13:58 UTC (rev 364)
@@ -1,7 +1,7 @@
/* sdldisplay.c: Routines for dealing with the SDL display
Copyright (c) 2000-2006 Philip Kendall, Matan Ziv-Av, Fredrick Meunier
- $Id: sdldisplay.c,v 1.43 2007/02/02 16:21:59 pak21 Exp $
+ $Id: sdldisplay.c,v 1.43.2.1 2007/04/28 00:23:08 fredm Exp $
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -89,7 +89,7 @@
static int num_rects = 0;
static libspectrum_byte sdldisplay_force_full_refresh = 1;
-static int min_fullscreen_width;
+static int max_fullscreen_height;
static int min_fullscreen_height;
/* The current size of the display (in units of DISPLAY_SCREEN_*) */
@@ -225,12 +225,14 @@
at all */
if( modes == (SDL_Rect **) 0 || modes == (SDL_Rect **) -1 ){
/* Just try whatever we have and see what happens */
- min_fullscreen_width = 320;
+ max_fullscreen_height = 480;
min_fullscreen_height = 240;
} else {
+ /* Record the largest supported fullscreen software mode */
+ max_fullscreen_height = modes[0]->h;
+
/* Record the smallest supported fullscreen software mode */
for( i=0; modes[i]; ++i ) {
- min_fullscreen_width = modes[i]->w;
min_fullscreen_height = modes[i]->h;
}
}
@@ -245,7 +247,7 @@
if ( scaler_select_scaler( current_scaler ) )
scaler_select_scaler( SCALER_NORMAL );
- sdldisplay_load_gfx_mode();
+ if( sdldisplay_load_gfx_mode() ) return 1;
SDL_WM_SetCaption( "Fuse", "Fuse" );
@@ -293,15 +295,17 @@
if( settings_current.full_screen ) {
int i = 0;
while( i < SCALER_NUM &&
- image_height * sdldisplay_current_size <= min_fullscreen_height/2 ) {
+ ( image_height*sdldisplay_current_size <= min_fullscreen_height/2 ||
+ image_height*sdldisplay_current_size > max_fullscreen_height ) ) {
if( windowed_scaler == -1) windowed_scaler = current_scaler;
while( !scaler_is_supported(i) ) i++;
scaler_select_scaler( i++ );
sdldisplay_current_size = scaler_get_scaling_factor( current_scaler );
- /* if we failed to find a suitable size scaler, just use what the user had
- originally */
- if( image_height * sdldisplay_current_size <= min_fullscreen_height/2 ) {
- scaler_select_scaler( windowed_scaler );
+ /* if we failed to find a suitable size scaler, just use normal (what the
+ user had originally may be too big) */
+ if( image_height * sdldisplay_current_size <= min_fullscreen_height/2 ||
+ image_height * sdldisplay_current_size > max_fullscreen_height ) {
+ scaler_select_scaler( SCALER_NORMAL );
sdldisplay_current_size = scaler_get_scaling_factor( current_scaler );
}
}
@@ -337,8 +341,8 @@
: SDL_SWSURFACE
);
if( !sdldisplay_gc ) {
- fprintf( stderr, "%s: couldn't create gc\n", fuse_progname );
- return 1;
+ fprintf( stderr, "%s: couldn't create SDL graphics context\n", fuse_progname );
+ fuse_abort();
}
sdldisplay_is_full_screen =
@@ -365,7 +369,7 @@
if( !tmp_screen ) {
fprintf( stderr, "%s: couldn't create tmp_screen\n", fuse_progname );
- return 1;
+ fuse_abort();
}
sdldisplay_allocate_colours( 16, colour_values, bw_values );
@@ -376,7 +380,7 @@
return 0;
}
-void
+int
uidisplay_hotswap_gfx_mode( void )
{
fuse_emulation_pause();
@@ -388,7 +392,7 @@
}
/* Setup the new GFX mode */
- sdldisplay_load_gfx_mode();
+ if( sdldisplay_load_gfx_mode() ) return 1;
/* reset palette */
SDL_SetColors( sdldisplay_gc, colour_palette, 0, 16 );
@@ -403,6 +407,8 @@
}
fuse_emulation_unpause();
+
+ return 0;
}
static void
@@ -664,8 +670,10 @@
/* We check for a switch to fullscreen here to give systems with a
windowed-only UI a chance to free menu etc. resources before
the switch to fullscreen (e.g. Mac OS X) */
- if( sdldisplay_is_full_screen != settings_current.full_screen ) {
- uidisplay_hotswap_gfx_mode();
+ if( sdldisplay_is_full_screen != settings_current.full_screen &&
+ uidisplay_hotswap_gfx_mode() ) {
+ fprintf( stderr, "%s: Error switching to fullscreen\n", fuse_progname );
+ fuse_abort();
}
/* Force a full redraw if requested */
Modified: vendor/fuse/current/ui/svga/svgadisplay.c
===================================================================
--- vendor/fuse/current/ui/svga/svgadisplay.c 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/ui/svga/svgadisplay.c 2007-05-12 00:13:58 UTC (rev 364)
@@ -2,7 +2,7 @@
Copyright (c) 2000-2003 Philip Kendall, Matan Ziv-Av, Witold Filipczyk,
Russell Marks
- $Id: svgadisplay.c,v 1.32 2007/02/02 16:21:59 pak21 Exp $
+ $Id: svgadisplay.c,v 1.32.2.1 2007/04/28 00:23:08 fredm Exp $
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -216,10 +216,10 @@
return 0;
}
-void
+int
uidisplay_hotswap_gfx_mode( void )
{
- return;
+ return 0;
}
void
Modified: vendor/fuse/current/ui/uidisplay.h
===================================================================
--- vendor/fuse/current/ui/uidisplay.h 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/ui/uidisplay.h 2007-05-12 00:13:58 UTC (rev 364)
@@ -1,7 +1,7 @@
/* uidisplay.h: Low-level display routines
Copyright (c) 2000-2003 Philip Kendall
- $Id: uidisplay.h,v 1.23 2007/02/02 16:21:55 pak21 Exp $
+ $Id: uidisplay.h,v 1.23.2.1 2007/04/28 00:23:07 fredm Exp $
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -34,7 +34,7 @@
void uidisplay_area( int x, int y, int w, int h );
void uidisplay_frame_end( void );
-void uidisplay_hotswap_gfx_mode( void );
+int uidisplay_hotswap_gfx_mode( void );
int uidisplay_end(void);
@@ -44,8 +44,8 @@
void uidisplay_putpixel( int x, int y, int colour );
void uidisplay_plot8( int x, int y, libspectrum_byte data, libspectrum_byte ink,
- libspectrum_byte paper );
+ libspectrum_byte paper );
void uidisplay_plot16( int x, int y, libspectrum_word data, libspectrum_byte ink,
- libspectrum_byte paper);
+ libspectrum_byte paper);
#endif /* #ifndef FUSE_UIDISPLAY_H */
Modified: vendor/fuse/current/ui/win32/win32display.c
===================================================================
--- vendor/fuse/current/ui/win32/win32display.c 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/ui/win32/win32display.c 2007-05-12 00:13:58 UTC (rev 364)
@@ -1,7 +1,7 @@
/* win32display.c: Routines for dealing with the Win32 DirectDraw display
Copyright (c) 2003 Philip Kendall, Marek Januszewski
- $Id: win32display.c,v 1.5 2007/02/02 16:22:00 pak21 Exp $
+ $Id: win32display.c,v 1.5.2.1 2007/04/28 00:23:08 fredm Exp $
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -444,7 +444,7 @@
}
-void
+int
uidisplay_hotswap_gfx_mode( void )
{
/* TODO: pause hangs emulator
@@ -455,6 +455,8 @@
/* TODO: pause hangs emulator
fuse_emulation_unpause();
*/
+
+ return 0;
}
int
Modified: vendor/fuse/current/ui/xlib/xdisplay.c
===================================================================
--- vendor/fuse/current/ui/xlib/xdisplay.c 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/ui/xlib/xdisplay.c 2007-05-12 00:13:58 UTC (rev 364)
@@ -1,7 +1,7 @@
/* xdisplay.c: Routines for dealing with drawing the Speccy's screen via Xlib
Copyright (c) 2000-2005 Philip Kendall, Darren Salt
- $Id: xdisplay.c,v 1.56 2007/02/02 16:22:00 pak21 Exp $
+ $Id: xdisplay.c,v 1.56.2.1 2007/04/28 00:23:08 fredm Exp $
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -496,10 +496,10 @@
if( image ) XDestroyImage( image ); image = 0;
}
-void
+int
uidisplay_hotswap_gfx_mode( void )
{
- return;
+ return 0;
}
int
Modified: vendor/fuse/current/uidisplay.c
===================================================================
--- vendor/fuse/current/uidisplay.c 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/uidisplay.c 2007-05-12 00:13:58 UTC (rev 364)
@@ -1,7 +1,7 @@
/* uidisplay.c: UI display functions
Copyright (c) 2002-2003 Philip Kendall
- $Id: uidisplay.c,v 1.9 2007/02/02 16:21:52 pak21 Exp $
+ $Id: uidisplay.c,v 1.9.2.1 2007/04/25 03:32:22 fredm Exp $
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -65,7 +65,8 @@
data = screen[ display_line_start[y]+x ];
- uidisplay_plot8( x, y, data, ink, paper );
+ uidisplay_plot8( x + DISPLAY_BORDER_WIDTH_COLS, y + DISPLAY_BORDER_HEIGHT,
+ data, ink, paper );
}
}
Modified: vendor/fuse/current/ula.c
===================================================================
--- vendor/fuse/current/ula.c 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/ula.c 2007-05-12 00:13:58 UTC (rev 364)
@@ -1,7 +1,7 @@
/* ula.c: ULA routines
Copyright (c) 1999-2004 Philip Kendall, Darren Salt
- $Id: ula.c,v 1.5 2007/02/02 16:21:52 pak21 Exp $
+ $Id: ula.c,v 1.5.2.1 2007/05/03 07:31:42 pak21 Exp $
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -98,7 +98,7 @@
}
void
-ula_contend_port_preio( libspectrum_word port )
+ula_contend_port_early( libspectrum_word port )
{
if( ( port & 0xc000 ) == 0x4000 ) tstates += ula_contention[ tstates ];
@@ -106,20 +106,20 @@
}
void
-ula_contend_port_postio( libspectrum_word port )
+ula_contend_port_late( libspectrum_word port )
{
if( machine_current->ram.port_contended( port ) ) {
- tstates += ula_contention[ tstates ]; tstates += 3;
+ tstates += ula_contention[ tstates ]; tstates += 2;
} else {
if( ( port & 0xc000 ) == 0x4000 ) {
tstates += ula_contention[ tstates ]; tstates++;
tstates += ula_contention[ tstates ]; tstates++;
- tstates += ula_contention[ tstates ]; tstates++;
+ tstates += ula_contention[ tstates ];
} else {
- tstates += 3;
+ tstates += 2;
}
}
Modified: vendor/fuse/current/ula.h
===================================================================
--- vendor/fuse/current/ula.h 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/ula.h 2007-05-12 00:13:58 UTC (rev 364)
@@ -1,7 +1,7 @@
/* ula.h: ULA routines
Copyright (c) 1999-2004 Philip Kendall, Darren Salt
- $Id: ula.h,v 1.3 2007/02/02 16:21:52 pak21 Exp $
+ $Id: ula.h,v 1.3.2.1 2007/05/03 07:31:42 pak21 Exp $
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -37,7 +37,7 @@
int ula_from_snapshot( libspectrum_snap *snap );
int ula_to_snapshot( libspectrum_snap *snap );
-void ula_contend_port_preio( libspectrum_word port );
-void ula_contend_port_postio( libspectrum_word port );
+void ula_contend_port_early( libspectrum_word port );
+void ula_contend_port_late( libspectrum_word port );
#endif /* #ifndef FUSE_ULA_H */
Modified: vendor/fuse/current/widget/Makefile.am
===================================================================
--- vendor/fuse/current/widget/Makefile.am 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/widget/Makefile.am 2007-05-12 00:13:58 UTC (rev 364)
@@ -1,7 +1,7 @@
## Process this file with automake to produce Makefile.in
## Copyright (c) 2001,2002 Philip Kendall
-## $Id: Makefile.am,v 1.39 2007/02/02 16:22:00 pak21 Exp $
+## $Id: Makefile.am,v 1.39.2.1 2007/04/16 12:35:07 fredm Exp $
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
@@ -65,3 +65,6 @@
options.h options.pl options-header.pl
pkgdata_DATA = fuse.font
+
+EXTRA_DIST = mkfusefont.pl \
+ fuse.font.sbf
Modified: vendor/fuse/current/widget/menu.c
===================================================================
--- vendor/fuse/current/widget/menu.c 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/widget/menu.c 2007-05-12 00:13:58 UTC (rev 364)
@@ -1,7 +1,7 @@
/* menu.c: general menu widget
Copyright (c) 2001-2006 Philip Kendall
- $Id: menu.c,v 1.109 2007/02/02 16:22:00 pak21 Exp $
+ $Id: menu.c,v 1.109.2.1 2007/04/25 03:32:22 fredm Exp $
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -553,6 +553,7 @@
info.filename = filename;
info.screen = file.buffer;
+ info.border = 0;
widget_do( WIDGET_TYPE_PICTURE, &info );
Modified: vendor/fuse/current/widget/pokefinder.c
===================================================================
--- vendor/fuse/current/widget/pokefinder.c 2007-05-12 00:06:47 UTC (rev 363)
+++ vendor/fuse/current/widget/pokefinder.c 2007-05-12 00:13:58 UTC (rev 364)
@@ -1,7 +1,7 @@
/* pokefinder.c: The poke finder widget
Copyright (c) 2004 Darren Salt
- $Id: pokefinder.c,v 1.2 2005/03/26 17:25:01 pak21 Exp $
+ $Id: pokefinder.c,v 1.2.6.1 2007/04/25 16:21:32 pak21 Exp $
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -52,18 +52,17 @@
widget_pokefinder_draw( void *data )
{
widget_dialog_with_border( 1, 2, 30, 12 );
- widget_printstring( 15 - strlen( title ) / 2, 2, WIDGET_COLOUR_FOREGROUND,
- title );
- widget_printstring( 2, 4, WIDGET_COLOUR_FOREGROUND, "Possible: " );
- widget_printstring( 2, 5, WIDGET_COLOUR_FOREGROUND, "Value: " );
+ widget_print_title( 16, WIDGET_COLOUR_FOREGROUND, title );
+ widget_printstring( 16, 32, WIDGET_COLOUR_FOREGROUND, "Possible: " );
+ widget_printstring( 16, 40, WIDGET_COLOUR_FOREGROUND, "Value: " );
update_possible();
display_possible();
display_value();
- widget_printstring( 2, 12, WIDGET_COLOUR_FOREGROUND,
- "(I)nc'd (D)ec'd (S)earch" );
- widget_printstring( 2, 13, WIDGET_COLOUR_FOREGROUND, "(R)eset (C)lose" );
+ widget_printstring( 16, 96, WIDGET_COLOUR_FOREGROUND,
+ "\x0AI\x09nc'd \x0A" "D\x09" "ec'd \x0AS\x09" "earch" );
+ widget_printstring( 16, 104, WIDGET_COLOUR_FOREGROUND, "\x0AR\x09" "eset \x0A" "C\x09lose" );
widget_display_lines( 2, 12 );
@@ -98,10 +97,10 @@
widget_rectangle( 96, 32, 48, 8, WIDGET_COLOUR_BACKGROUND );
widget_rectangle( 16, 56, 128, 32, WIDGET_COLOUR_BACKGROUND );
widget_rectangle( 16, 88, 136, 8, WIDGET_COLOUR_BACKGROUND );
- widget_rectangle( 144, 104, 56, 8, WIDGET_COLOUR_BACKGROUND );
+ widget_rectangle( 82, 104, 56, 8, WIDGET_COLOUR_BACKGROUND );
snprintf( buf, sizeof( buf ), "%d", pokefinder_count );
- widget_printstring( 12, 4, WIDGET_COLOUR_FOREGROUND, buf );
+ widget_printstring( 96, 32, WIDGET_COLOUR_FOREGROUND, buf );
if( FEW_ENOUGH() ) {
size_t i;
@@ -120,10 +119,10 @@
snprintf( buf, sizeof( buf ), "%2d:%04X", possible_page[i],
possible_offset[i] );
- widget_printstring( x, y, colour, buf );
+ widget_printstring( x * 8, y * 8, colour, buf );
}
- widget_printstring( 18, 13, WIDGET_COLOUR_FOREGROUND, "(B)reak" );
+ widget_printstring( 83, 104, WIDGET_COLOUR_FOREGROUND, "\x0A" "B\x09reak" );
}
widget_display_lines( 4, 10 );
@@ -136,7 +135,7 @@
snprintf( buf, sizeof( buf ), "%d", value );
widget_rectangle( 72, 40, 24, 8, WIDGET_COLOUR_BACKGROUND );
- widget_printstring( 9, 5, WIDGET_COLOUR_FOREGROUND, buf );
+ widget_printstring( 72, 40, WIDGET_COLOUR_FOREGROUND, buf );
widget_display_lines( 5, 1 );
}
@@ -202,10 +201,10 @@
possible_offset[selected], 0, DEBUGGER_BREAKPOINT_LIFE_PERMANENT,
NULL
) ) {
- widget_printstring( 2, 11, WIDGET_COLOUR_FOREGROUND,
+ widget_printstring( 16, 88, WIDGET_COLOUR_FOREGROUND,
"Breakpoint failed" );
} else {
- widget_printstring( 2, 11, WIDGET_COLOUR_FOREGROUND,
+ widget_printstring( 16, 88, WIDGET_COLOUR_FOREGROUND,
"Breakpoint added" );
}
widget_display_lines( 11, 1 );
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|