Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PUAE
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
PUAE
Commits
a28a7fdd
Commit
a28a7fdd
authored
Sep 07, 2010
by
Mustafa 'GnoStiC' TUFAN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
puae 2.3.0
parent
04cfcc41
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
276 additions
and
744 deletions
+276
-744
custom.c
src/custom.c
+1
-0
gfx.h
src/gfx-sdl/gfx.h
+1
-0
sdlgfx.c
src/gfx-sdl/sdlgfx.c
+23
-2
misc.c
src/misc.c
+0
-2
picasso96.c
src/picasso96.c
+248
-736
sysconfig.h
src/sysconfig.h
+0
-1
config.log
src/tools/config.log
+3
-3
No files found.
src/custom.c
View file @
a28a7fdd
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
#include "autoconf.h"
#include "autoconf.h"
#include "traps.h"
#include "traps.h"
#include "gui.h"
#include "gui.h"
#include "gfxdep/gfx.h"
#include "picasso96.h"
#include "picasso96.h"
#include "drawing.h"
#include "drawing.h"
#include "savestate.h"
#include "savestate.h"
...
...
src/gfx-sdl/gfx.h
View file @
a28a7fdd
...
@@ -9,3 +9,4 @@
...
@@ -9,3 +9,4 @@
#define GFX_NAME "sdl"
#define GFX_NAME "sdl"
#define USE_SDL_GFX
#define USE_SDL_GFX
#define PICASSO96_SUPPORTED
#define PICASSO96_SUPPORTED
#define PICASSO96
src/gfx-sdl/sdlgfx.c
View file @
a28a7fdd
...
@@ -92,8 +92,8 @@ static SDL_Rect screenmode[MAX_SDL_SCREENMODE];
...
@@ -92,8 +92,8 @@ static SDL_Rect screenmode[MAX_SDL_SCREENMODE];
static
int
mode_count
;
static
int
mode_count
;
static
int
red_bits
,
green_bits
,
blue_bits
;
static
int
red_bits
,
green_bits
,
blue_bits
,
alpha_bits
;
static
int
red_shift
,
green_shift
,
blue_shift
;
static
int
red_shift
,
green_shift
,
blue_shift
,
alpha_shift
;
#ifdef PICASSO96
#ifdef PICASSO96
static
int
screen_is_picasso
;
static
int
screen_is_picasso
;
...
@@ -389,6 +389,27 @@ static int find_best_mode (int *width, int *height, int depth, int fullscreen)
...
@@ -389,6 +389,27 @@ static int find_best_mode (int *width, int *height, int depth, int fullscreen)
}
}
#ifdef PICASSO96
#ifdef PICASSO96
int
picasso_palette
(
void
)
{
int
i
,
changed
;
changed
=
0
;
for
(
i
=
0
;
i
<
256
;
i
++
)
{
int
r
=
picasso96_state
.
CLUT
[
i
].
Red
;
int
g
=
picasso96_state
.
CLUT
[
i
].
Green
;
int
b
=
picasso96_state
.
CLUT
[
i
].
Blue
;
uae_u32
v
=
(
doMask256
(
r
,
red_bits
,
red_shift
)
|
doMask256
(
g
,
green_bits
,
green_shift
)
|
doMask256
(
b
,
blue_bits
,
blue_shift
))
|
doMask256
(
0xff
,
alpha_bits
,
alpha_shift
);
if
(
v
!=
picasso_vidinfo
.
clut
[
i
])
{
picasso_vidinfo
.
clut
[
i
]
=
v
;
changed
=
1
;
}
}
return
changed
;
}
/*
/*
* Map an SDL pixel format to a P96 pixel format
* Map an SDL pixel format to a P96 pixel format
*/
*/
...
...
src/misc.c
View file @
a28a7fdd
...
@@ -1236,8 +1236,6 @@ void addmode (struct MultiDisplay *md, int w, int h, int d, int rate, int nondx)
...
@@ -1236,8 +1236,6 @@ void addmode (struct MultiDisplay *md, int w, int h, int d, int rate, int nondx)
md
->
DisplayModes
[
i
].
res
.
width
,
md
->
DisplayModes
[
i
].
res
.
height
,
md
->
DisplayModes
[
i
].
depth
*
8
);
md
->
DisplayModes
[
i
].
res
.
width
,
md
->
DisplayModes
[
i
].
res
.
height
,
md
->
DisplayModes
[
i
].
depth
*
8
);
}
}
//dxwrap
//dxwrap
int
DirectDraw_CurrentRefreshRate
(
void
)
int
DirectDraw_CurrentRefreshRate
(
void
)
{
{
...
...
src/picasso96.c
View file @
a28a7fdd
This diff is collapsed.
Click to expand it.
src/sysconfig.h
View file @
a28a7fdd
...
@@ -456,4 +456,3 @@
...
@@ -456,4 +456,3 @@
/* Define to empty if the keyword `volatile' does not work. Warning: valid
/* Define to empty if the keyword `volatile' does not work. Warning: valid
code using `volatile' can become incorrect without. Disable with care. */
code using `volatile' can become incorrect without. Disable with care. */
/* #undef volatile */
/* #undef volatile */
#define PICASSO96
src/tools/config.log
View file @
a28a7fdd
...
@@ -445,7 +445,7 @@ configure:4344: $? = 0
...
@@ -445,7 +445,7 @@ configure:4344: $? = 0
configure:4344: result: yes
configure:4344: result: yes
configure:4350: checking for _doprnt
configure:4350: checking for _doprnt
configure:4350: gcc -o conftest -g -O2 -Wall -W -Wno-unused conftest.c >&5
configure:4350: gcc -o conftest -g -O2 -Wall -W -Wno-unused conftest.c >&5
/tmp/cc
3ddsdl
.o: In function `main':
/tmp/cc
tA4xTI
.o: In function `main':
/home/gnostic/puaex/src/tools/conftest.c:67: undefined reference to `_doprnt'
/home/gnostic/puaex/src/tools/conftest.c:67: undefined reference to `_doprnt'
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
configure:4350: $? = 1
configure:4350: $? = 1
...
@@ -533,7 +533,7 @@ configure:4364: $? = 0
...
@@ -533,7 +533,7 @@ configure:4364: $? = 0
configure:4364: result: yes
configure:4364: result: yes
configure:4364: checking for strcmpi
configure:4364: checking for strcmpi
configure:4364: gcc -o conftest -g -O2 -Wall -W -Wno-unused conftest.c >&5
configure:4364: gcc -o conftest -g -O2 -Wall -W -Wno-unused conftest.c >&5
/tmp/cc
yjfxIA
.o: In function `main':
/tmp/cc
0VeH5X
.o: In function `main':
/home/gnostic/puaex/src/tools/conftest.c:69: undefined reference to `strcmpi'
/home/gnostic/puaex/src/tools/conftest.c:69: undefined reference to `strcmpi'
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
configure:4364: $? = 1
configure:4364: $? = 1
...
@@ -613,7 +613,7 @@ configure: failed program was:
...
@@ -613,7 +613,7 @@ configure: failed program was:
configure:4364: result: no
configure:4364: result: no
configure:4364: checking for stricmp
configure:4364: checking for stricmp
configure:4364: gcc -o conftest -g -O2 -Wall -W -Wno-unused conftest.c >&5
configure:4364: gcc -o conftest -g -O2 -Wall -W -Wno-unused conftest.c >&5
/tmp/cc
s8WUKF
.o: In function `main':
/tmp/cc
AFSU92
.o: In function `main':
/home/gnostic/puaex/src/tools/conftest.c:69: undefined reference to `stricmp'
/home/gnostic/puaex/src/tools/conftest.c:69: undefined reference to `stricmp'
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
configure:4364: $? = 1
configure:4364: $? = 1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment