Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
864135da
Commit
864135da
authored
Sep 25, 2003
by
Sascha Brawer
Committed by
Michael Koch
Sep 25, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Really commit the files.
From-SVN: r71790
parent
2ccba5f0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
8 deletions
+28
-8
libjava/java/awt/image/BufferedImage.java
+15
-3
libjava/java/awt/image/Raster.java
+10
-3
libjava/java/awt/image/WritableRaster.java
+3
-2
No files found.
libjava/java/awt/image/BufferedImage.java
View file @
864135da
/* Copyright (C) 2000, 2002 Free Software Foundation
/* Copyright (C) 2000, 2002
, 2003
Free Software Foundation
This file is part of GNU Classpath.
...
...
@@ -589,10 +589,22 @@ public class BufferedImage extends Image
public
String
toString
()
{
// FIXME: implement:
return
super
.
toString
();
StringBuffer
buf
;
buf
=
new
StringBuffer
(
/* estimated length */
120
);
buf
.
append
(
"BufferedImage@"
);
buf
.
append
(
Integer
.
toHexString
(
hashCode
()));
buf
.
append
(
": type="
);
buf
.
append
(
type
);
buf
.
append
(
' '
);
buf
.
append
(
colorModel
);
buf
.
append
(
' '
);
buf
.
append
(
raster
);
return
buf
.
toString
();
}
/**
* Adds a tile observer. If the observer is already present, it receives
* multiple notifications.
...
...
libjava/java/awt/image/Raster.java
View file @
864135da
/* Copyright (C) 2000, 2002 Free Software Foundation
/* Copyright (C) 2000, 2002
, 2003
Free Software Foundation
This file is part of GNU Classpath.
...
...
@@ -81,8 +81,15 @@ public class Raster
this
.
minY
=
aRegion
.
y
;
this
.
width
=
aRegion
.
width
;
this
.
height
=
aRegion
.
height
;
this
.
sampleModelTranslateX
=
sampleModelTranslate
.
x
;
this
.
sampleModelTranslateY
=
sampleModelTranslate
.
y
;
// If sampleModelTranslate is null, use (0,0). Methods such as
// Raster.createRaster are specified to allow for a null argument.
if
(
sampleModelTranslate
!=
null
)
{
this
.
sampleModelTranslateX
=
sampleModelTranslate
.
x
;
this
.
sampleModelTranslateY
=
sampleModelTranslate
.
y
;
}
this
.
numBands
=
sampleModel
.
getNumBands
();
this
.
numDataElements
=
sampleModel
.
getNumDataElements
();
this
.
parent
=
parent
;
...
...
libjava/java/awt/image/WritableRaster.java
View file @
864135da
/* Copyright (C) 2000, 2002 Free Software Foundation
/* Copyright (C) 2000, 2002
, 2003
Free Software Foundation
This file is part of GNU Classpath.
...
...
@@ -54,7 +54,8 @@ public class WritableRaster extends Raster
DataBuffer
dataBuffer
,
Point
origin
)
{
this
(
sampleModel
,
dataBuffer
,
new
Rectangle
(
origin
.
x
,
origin
.
y
,
new
Rectangle
(
origin
!=
null
?
origin
.
x
:
0
,
origin
!=
null
?
origin
.
y
:
0
,
sampleModel
.
getWidth
(),
sampleModel
.
getHeight
()),
origin
,
null
);
...
...
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