ref: ef00d064ab311bc0b00a0c4a7cc7d60b9e534770
parent: d75bee4eea4a52070fef3f25183b05e674fa382d
author: Gabriel Ravier <gabravier@gmail.com>
date: Tue May 7 13:47:21 EDT 2019
Reverted RECT formatting changes That's actually how the code is supposed to be formatted Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
--- a/src/Caret.cpp
+++ b/src/Caret.cpp
@@ -23,8 +23,7 @@
void ActCaret01(CARET *crt)
{
- RECT rcLeft[4] =
- {
+ RECT rcLeft[4] = {
{0, 64, 8, 72},
{8, 64, 16, 72},
{16, 64, 24, 72},
@@ -31,8 +30,7 @@
{24, 64, 32, 72},
};
- RECT rcRight[4] =
- {
+ RECT rcRight[4] = {
{64, 24, 72, 32},
{72, 24, 80, 32},
{80, 24, 88, 32},
@@ -65,8 +63,7 @@
void ActCaret02(CARET *crt)
{
- RECT rect_left[4] =
- {
+ RECT rect_left[4] = {
{0, 32, 16, 48},
{16, 32, 32, 48},
{32, 32, 48, 48},
@@ -73,8 +70,7 @@
{48, 32, 64, 48},
};
- RECT rect_right[4] =
- {
+ RECT rect_right[4] = {
{176, 0, 192, 16},
{192, 0, 208, 16},
{208, 0, 224, 16},
@@ -81,8 +77,7 @@
{224, 0, 240, 16},
};
- RECT rect_up[3] =
- {
+ RECT rect_up[3] = {
{0, 32, 16, 48},
{32, 32, 48, 48},
{16, 32, 32, 48},
@@ -131,8 +126,8 @@
void ActCaret03(CARET *crt)
{
- RECT rect[4] =
- {
+ RECT rect[4] ={
+
{0, 48, 16, 64},
{16, 48, 32, 64},
{32, 48, 48, 64},
@@ -151,8 +146,8 @@
void ActCaret04(CARET *crt)
{
- RECT rect[9] =
- {
+ RECT rect[9] ={
+
{64, 32, 80, 48},
{80, 32, 96, 48},
{96, 32, 112, 48},
@@ -177,8 +172,8 @@
void ActCaret05(CARET *crt)
{
- RECT rect[7] =
- {
+ RECT rect[7] ={
+
{32, 64, 40, 72},
{32, 72, 40, 80},
{40, 64, 48, 72},
@@ -205,8 +200,8 @@
void ActCaret07(CARET *crt)
{
- RECT rcLeft[7] =
- {
+ RECT rcLeft[7] ={
+
{56, 0, 64, 8},
{64, 0, 72, 8},
{72, 0, 80, 8},
@@ -273,14 +268,14 @@
void ActCaret10(CARET *crt)
{
- RECT rcLeft[2] =
- {
+ RECT rcLeft[2] ={
+
{0, 0, 56, 16},
{0, 16, 56, 32},
};
- RECT rcRight[2] =
- {
+ RECT rcRight[2] ={
+
{0, 96, 56, 112},
{0, 112, 56, 128},
};
@@ -325,8 +320,8 @@
crt->x += crt->xm;
crt->y += crt->ym;
- RECT rcRight[7] =
- {
+ RECT rcRight[7] ={
+
{56, 8, 64, 16},
{64, 8, 72, 16},
{72, 8, 80, 16},
@@ -348,8 +343,8 @@
void ActCaret12(CARET *crt)
{
- RECT rcLeft[2] =
- {
+ RECT rcLeft[2] ={
+
{112, 0, 144, 32},
{144, 0, 176, 32},
};
@@ -366,8 +361,8 @@
void ActCaret13(CARET *crt)
{
- RECT rcLeft[2] =
- {
+ RECT rcLeft[2] ={
+
{56, 24, 64, 32},
{0, 0, 0, 0},
};
@@ -411,8 +406,8 @@
void ActCaret14(CARET *crt)
{
- RECT rect[5] =
- {
+ RECT rect[5] ={
+
{0, 96, 40, 136},
{40, 96, 80, 136},
{80, 96, 120, 136},
@@ -433,8 +428,8 @@
void ActCaret15(CARET *crt)
{
- RECT rcLeft[4] =
- {
+ RECT rcLeft[4] ={
+
{0, 72, 8, 80},
{8, 72, 16, 80},
{16, 72, 24, 80},
@@ -454,8 +449,8 @@
void ActCaret16(CARET *crt)
{
- RECT rcLeft[2] =
- {
+ RECT rcLeft[2] ={
+
{104, 96, 144, 104},
{104, 104, 144, 112},
};
@@ -471,8 +466,8 @@
void ActCaret17(CARET *crt)
{
- RECT rcLeft[2] =
- {
+ RECT rcLeft[2] ={
+
{0, 144, 144, 152},
{0, 0, 0, 0},
};
@@ -487,8 +482,7 @@
}
// Tables
-CARET_TABLE gCaretTable[18] =
-{
+CARET_TABLE gCaretTable[18] = {
{0, 0},
{0x800, 0x800},
{0x1000, 0x1000},