• R/O
  • HTTP
  • SSH
  • HTTPS

hengbandosx: Commit

The master and develop branches track hengband.

OS X development happens on the macos-1-6-2, macos-2-2-1, and macos-develop branches.


Commit MetaInfo

Revision989fc783c769d754fa0765f0027516068cc114a7 (tree)
Zeit2020-10-09 06:07:11
AutorEric Branlund <ebranlund@fast...>
CommiterEric Branlund

Log Message

Fixed up the formatting of more multi-line comments.

Ändern Zusammenfassung

Diff

--- a/src/main-cocoa.m
+++ b/src/main-cocoa.m
@@ -1817,7 +1817,8 @@ static void draw_image_tile(
18171817 }
18181818
18191819
1820-/* The max number of glyphs we support. Currently this only affects
1820+/*
1821+ * The max number of glyphs we support. Currently this only affects
18211822 * updateGlyphInfo() for the calculation of the tile size, fontAscender,
18221823 * fontDescender, nColPre, and nColPost. The rendering in drawWChar() will
18231824 * work for a glyph not in updateGlyphInfo()'s set, and that is used for
@@ -1948,8 +1949,10 @@ static void draw_image_tile(
19481949 /* Display (flush) our Angband views */
19491950 - (void)displayIfNeeded;
19501951
1951-/* Resize context to size of contentRect, and optionally save size to
1952- * defaults */
1952+/*
1953+ * Resize context to size of contentRect, and optionally save size to
1954+ * defaults
1955+ */
19531956 - (void)resizeTerminalWithContentRect: (NSRect)contentRect saveToDefaults: (BOOL)saveToDefaults;
19541957
19551958 /*
@@ -4345,8 +4348,10 @@ static void Term_init_cocoa(term_type *t)
43454348 [window setFrame: windowFrame display: NO];
43464349 }
43474350
4348- /* Override the default frame above if the user has adjusted windows in
4349- * the past */
4351+ /*
4352+ * Override the default frame above if the user has adjusted windows in
4353+ * the past
4354+ */
43504355 if (autosaveName) [window setFrameAutosaveName:autosaveName];
43514356
43524357 /*
@@ -4840,20 +4845,22 @@ static errr Term_text_cocoa(
48404845 }
48414846
48424847 #if 0
4843-/* From the Linux mbstowcs(3) man page:
4844- * If dest is NULL, n is ignored, and the conversion proceeds as above,
4845- * except that the converted wide characters are not written out to mem‐
4846- * ory, and that no length limit exists.
4848+/*
4849+ * From the Linux mbstowcs(3) man page:
4850+ * If dest is NULL, n is ignored, and the conversion proceeds as above,
4851+ * except that the converted wide characters are not written out to
4852+ * memory, and that no length limit exists.
48474853 */
48484854 static size_t Term_mbcs_cocoa(wchar_t *dest, const char *src, int n)
48494855 {
48504856 int i;
48514857 int count = 0;
48524858
4853- /* Unicode code point to UTF-8
4854- * 0x0000-0x007f: 0xxxxxxx
4855- * 0x0080-0x07ff: 110xxxxx 10xxxxxx
4856- * 0x0800-0xffff: 1110xxxx 10xxxxxx 10xxxxxx
4859+ /*
4860+ * Unicode code point to UTF-8
4861+ * 0x0000-0x007f: 0xxxxxxx
4862+ * 0x0080-0x07ff: 110xxxxx 10xxxxxx
4863+ * 0x0800-0xffff: 1110xxxx 10xxxxxx 10xxxxxx
48574864 * 0x10000-0x1fffff: 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
48584865 * Note that UTF-16 limits Unicode to 0x10ffff. This code is not
48594866 * endian-agnostic.
@@ -5062,7 +5069,8 @@ static void AngbandHandleEventMouseDown( NSEvent *event )
50625069
50635070 /**
50645071 * Encodes an NSEvent Angband-style, or forwards it along. Returns YES if the
5065- * event was sent to Angband, NO if Cocoa (or nothing) handled it */
5072+ * event was sent to Angband, NO if Cocoa (or nothing) handled it
5073+ */
50665074 static BOOL send_event(NSEvent *event)
50675075 {
50685076
@@ -6018,7 +6026,7 @@ static void init_windows(void)
60186026 }
60196027
60206028 /**
6021- * Send a command to Angband via a menu item. This places the appropriate key
6029+ * Send a command to Angband via a menu item. This places the appropriate key
60226030 * down events into the queue so that it seems like the user pressed them
60236031 * (instead of trying to use the term directly).
60246032 */
@@ -6058,7 +6066,7 @@ static void init_windows(void)
60586066 }
60596067
60606068 /**
6061- * Set up the command menu dynamically, based on CommandMenu.plist.
6069+ * Set up the command menu dynamically, based on CommandMenu.plist.
60626070 */
60636071 - (void)prepareCommandMenu
60646072 {
Show on old repository browser