Check-in [bef523c8ff]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Correct bytes being truncated on flush of a PrintStream.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:bef523c8ff3fdcb4f41b78b9f11bb45e19a3e05e
User & Date: stephanie.gawroriski 2019-07-01 00:11:26
Context
2019-07-01
07:02
Backup developer notes. check-in: 30e9809e99 user: squirreljme tags: trunk, x-date-201907
00:11
Correct bytes being truncated on flush of a PrintStream. check-in: bef523c8ff user: stephanie.gawroriski tags: trunk
2019-06-30
23:29
Image.getGraphics() correctly enables the alpha channel if one is used; Rework GameCanvas to use a raw pixel buffer. check-in: 755b182ede user: stephanie.gawroriski tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to runt/apis/cldc-compact/java/io/PrintStream.java.

826
827
828
829
830
831
832
833

834
835
836
837
838
839
840
841
842
843
			// Auto-flushing on newline?
			if (autoflush && b == '\n')
				flush = true;
			
			// Force a flush?
			if (bat >= _THRESHOLD)
			{
				// Send flush

				this.__flush();
				
				// Needs to be re-read since flush changes this
				bat = this._bat;
			}
		}
		
		// Store changes
		this._bat = bat;
		







|
>

<
<







826
827
828
829
830
831
832
833
834
835


836
837
838
839
840
841
842
			// Auto-flushing on newline?
			if (autoflush && b == '\n')
				flush = true;
			
			// Force a flush?
			if (bat >= _THRESHOLD)
			{
				// Store at location, flush then reload it
				this._bat = bat;
				this.__flush();


				bat = this._bat;
			}
		}
		
		// Store changes
		this._bat = bat;