Skip to content

Commit

Permalink
Merge pull request #33 from TOMOQ1024/feature/prepare_for_release
Browse files Browse the repository at this point in the history
Feature/prepare for release
  • Loading branch information
TOMOQ1024 authored Jul 16, 2023
2 parents 0917b84 + 6aa617a commit f9cada1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion Source/Color.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,15 @@ int Calc(UINT x, UINT y)
cr = graph.x0 + (x - (double)display.width / 2) / display.mlen * graph.size;
ci = graph.y0 + (y - (double)display.height / 2) / display.mlen * graph.size;
for (i = 0; i <= (int)graph.limit; i++) {
if (zr * zr + zi * zi > 4) return i;
//if (zr * zr * zr * zr + zi * zi * zi * zi> 4) return i;
//tmp = zr * zr * zr * zr - zi * zi * zi *zi + cr;
if (zr * zr + zi * zi> 4) return i;
tmp = zr * zr - zi * zi + cr;
zi = 2 * zr * zi + ci;
zr = tmp;
//tmp = (zr * zr - zi * zi) * zr - (2 * zr * zi + ci) * zi + cr;
//zi = 2 * (zr * zr - zi * zi) * (2 * zr * zi + ci) + ci;
//zr = tmp;
}
return -1;
}
5 changes: 4 additions & 1 deletion Source/Main.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,10 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
lpPixel = (LPDWORD)HeapAlloc(
GetProcessHeap(), HEAP_ZERO_MEMORY,
//display.width * display.height * 4
GetSystemMetrics(SM_CXSCREEN) * GetSystemMetrics(SM_CYSCREEN) * 4
max(
GetSystemMetrics(SM_CXSCREEN) * GetSystemMetrics(SM_CYSCREEN),
2000 * 2000
) * 4 * 4
);
// DIBの情報を設定する
bmpInfo.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
Expand Down

0 comments on commit f9cada1

Please sign in to comment.