Move lrgb_list onto stack

This commit is contained in:
Kp 2013-11-28 00:24:17 +00:00
parent e535de5181
commit c47d1b3d30

View file

@ -29,7 +29,6 @@ static g3s_uvl uvl_list[4] = { { 0x0200,0x0200,0 },
{ 0xfe00,0x0200,0 },
{ 0xfe00,0xfe00,0 },
{ 0x0200,0xfe00,0 } };
g3s_lrgb lrgb_list[4] = { { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 } };
//compute the corners of a rod. fills in vertbuf.
static int calc_rod_corners(g3s_point *bot_point,fix bot_width,g3s_point *top_point,fix top_width)
@ -118,6 +117,7 @@ bool g3_draw_rod_tmap(grs_bitmap *bitmap,g3s_point *bot_point,fix bot_width,g3s_
return 0;
uvl_list[0].l = uvl_list[1].l = uvl_list[2].l = uvl_list[3].l = (light.r+light.g+light.b)/3;
g3s_lrgb lrgb_list[4];
lrgb_list[0].r = lrgb_list[1].r = lrgb_list[2].r = lrgb_list[3].r = light.r;
lrgb_list[0].g = lrgb_list[1].g = lrgb_list[2].g = lrgb_list[3].g = light.g;
lrgb_list[0].b = lrgb_list[1].b = lrgb_list[2].b = lrgb_list[3].b = light.b;